Katheryne/Frontend/Program.cs

25 lines
603 B
C#
Raw Permalink Normal View History

2023-10-17 23:32:39 +08:00
using Blazored.LocalStorage;
2023-11-19 12:55:02 +08:00
using Frontend.Components;
using Katheryne;
2023-10-17 23:32:39 +08:00
using Frontend.Services;
2023-11-01 16:49:52 +08:00
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
2023-10-17 23:32:39 +08:00
2023-11-19 12:55:02 +08:00
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
2023-10-07 13:27:25 +08:00
2023-11-01 16:49:52 +08:00
builder.Services.AddAntDesign();
builder.Services.AddBlazoredLocalStorage();
2023-10-13 16:24:03 +08:00
builder.Services.AddKatheryne();
2023-10-17 23:32:39 +08:00
builder.Services.AddScoped<GrammarStorageService>();
2023-11-01 16:49:52 +08:00
WebApplication app = builder.Build();
app.UseStaticFiles();
app.UseRouting();
2023-11-19 12:55:02 +08:00
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
2023-10-07 13:27:25 +08:00
2023-10-17 20:10:28 +08:00
await app.RunAsync();