mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
add local run and save button
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Unicode;
|
||||
using Kemkas.Web.Config;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Kemkas.Web.Db;
|
||||
@@ -30,7 +32,11 @@ builder.Services.AddDefaultIdentity<ApplicationUser>(options => options.SignIn.R
|
||||
|
||||
builder.Services.AddAuthentication();
|
||||
|
||||
builder.Services.AddControllersWithViews();
|
||||
builder.Services.AddControllersWithViews().AddJsonOptions(options =>
|
||||
{
|
||||
options.JsonSerializerOptions.AllowTrailingCommas = true;
|
||||
options.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All);
|
||||
});
|
||||
builder.Services.AddRazorPages();
|
||||
|
||||
builder.Services.AddCharacterServices();
|
||||
@@ -54,6 +60,8 @@ await using (var scope = app.Services.CreateAsyncScope())
|
||||
await db.Database.MigrateAsync();
|
||||
}
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.UseRouting();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user