chore: fix power_control
This commit is contained in:
@@ -2,6 +2,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Add JSON serialization services
|
||||||
|
builder.Services.ConfigureHttpJsonOptions(options =>
|
||||||
|
{
|
||||||
|
options.SerializerOptions.PropertyNameCaseInsensitive = true;
|
||||||
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
app.MapPost(
|
app.MapPost(
|
||||||
@@ -30,7 +36,4 @@ app.MapPost(
|
|||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|
||||||
record AlertBody
|
record AlertBody(string Status);
|
||||||
{
|
|
||||||
string status;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user