20 lines
433 B
C#
20 lines
433 B
C#
using Katheryne;
|
|
using Katheryne.Abstractions;
|
|
|
|
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
builder.Services.AddRazorPages();
|
|
builder.Services.AddServerSideBlazor();
|
|
builder.Services.AddAntDesign();
|
|
|
|
builder.Services.AddTransient<IChatRobot, DefaultChatRobot>();
|
|
|
|
WebApplication app = builder.Build();
|
|
|
|
app.UseStaticFiles();
|
|
|
|
app.UseRouting();
|
|
|
|
app.MapBlazorHub();
|
|
app.MapFallbackToPage("/_Host");
|
|
|
|
app.Run(); |