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

@@ -5,6 +5,7 @@
@using LucideBlazor
@using Moonlight.Frontend.Helpers
@using Moonlight.Frontend.Services
@using Moonlight.Shared.Http
@using Moonlight.Shared.Http.Requests.Admin.Themes
@using ShadcnBlazor.Buttons
@using ShadcnBlazor.Cards
@@ -122,7 +123,7 @@
var response = await HttpClient.PostAsJsonAsync(
"/api/admin/themes",
Request,
Constants.SerializerOptions
SerializationContext.Default.Options
);
if (!response.IsSuccessStatusCode)