Discord Bot web UI first preview

This commit is contained in:
2023-04-08 13:18:25 +03:00
parent 0a2dff0c6d
commit 810a527cc1
86 changed files with 74906 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
await PluginManager.Config.Initialize(true);
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();