2023-10-17 23:32:39 +08:00
|
|
|
using Blazored.LocalStorage;
|
2023-10-11 14:23:38 +08:00
|
|
|
using Katheryne;
|
2023-10-17 23:32:39 +08:00
|
|
|
using Frontend.Services;
|
2023-10-11 14:23:38 +08:00
|
|
|
|
2023-11-01 16:49:52 +08:00
|
|
|
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
2023-10-17 23:32:39 +08:00
|
|
|
|
2023-11-01 16:49:52 +08:00
|
|
|
builder.Services.AddRazorPages();
|
|
|
|
builder.Services.AddServerSideBlazor();
|
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-10-11 14:23:38 +08:00
|
|
|
|
2023-11-01 16:49:52 +08:00
|
|
|
WebApplication app = builder.Build();
|
|
|
|
|
|
|
|
app.UseStaticFiles();
|
|
|
|
app.UseRouting();
|
|
|
|
app.MapBlazorHub();
|
|
|
|
app.MapFallbackToPage("/_Host");
|
2023-10-07 13:27:25 +08:00
|
|
|
|
2023-10-17 20:10:28 +08:00
|
|
|
await app.RunAsync();
|