Switched from self created static constant json options to a source generator options
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@using Moonlight.Shared.Http.Responses.Admin.Auth
|
||||
@using Moonlight.Shared.Http
|
||||
@using Moonlight.Shared.Http.Responses.Admin.Auth
|
||||
@using ShadcnBlazor.Cards
|
||||
@using ShadcnBlazor.Spinners
|
||||
@using ShadcnBlazor.Buttons
|
||||
@@ -48,7 +49,7 @@
|
||||
return;
|
||||
|
||||
var schemes = await HttpClient.GetFromJsonAsync<SchemeDto[]>(
|
||||
"api/auth", Constants.SerializerOptions
|
||||
"api/auth", SerializationContext.Default.Options
|
||||
);
|
||||
|
||||
if (schemes == null)
|
||||
|
||||
Reference in New Issue
Block a user