Switched from self created static constant json options to a source generator options

This commit is contained in:
2026-02-19 08:49:23 +01:00
parent d7b725f541
commit 0bd138df63
20 changed files with 46 additions and 84 deletions

View File

@@ -6,6 +6,7 @@
@using Moonlight.Frontend.Helpers
@using Moonlight.Frontend.Mappers
@using Moonlight.Frontend.Services
@using Moonlight.Shared.Http
@using Moonlight.Shared.Http.Requests.Admin.Themes
@using Moonlight.Shared.Http.Responses.Admin.Themes
@using ShadcnBlazor.Buttons
@@ -136,7 +137,7 @@
var response = await HttpClient.PatchAsJsonAsync(
$"/api/admin/themes/{Theme.Id}",
Request,
Constants.SerializerOptions
SerializationContext.Default.Options
);
if (!response.IsSuccessStatusCode)