2023-10-11 14:23:38 +08:00
|
|
|
using Katheryne;
|
|
|
|
using Katheryne.Abstractions;
|
|
|
|
|
2023-10-07 13:27:25 +08:00
|
|
|
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services.AddRazorPages();
|
|
|
|
builder.Services.AddServerSideBlazor();
|
|
|
|
builder.Services.AddAntDesign();
|
|
|
|
|
2023-10-11 14:23:38 +08:00
|
|
|
builder.Services.AddTransient<IChatRobot, DefaultChatRobot>();
|
|
|
|
|
2023-10-07 13:27:25 +08:00
|
|
|
WebApplication app = builder.Build();
|
|
|
|
|
|
|
|
app.UseStaticFiles();
|
|
|
|
|
|
|
|
app.UseRouting();
|
|
|
|
|
|
|
|
app.MapBlazorHub();
|
|
|
|
app.MapFallbackToPage("/_Host");
|
|
|
|
|
|
|
|
app.Run();
|