diff --git a/src/Program.cs b/src/Program.cs index fb2beee..23d8fed 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -44,6 +44,8 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); +builder.Services.AddCoreAdmin(); + bool assetServer = builder.Configuration.GetSection("AssetServer").GetValue("Enabled"); string assetIP = builder.Configuration.GetSection("AssetServer").GetValue("ListenIP"); int assetPort = builder.Configuration.GetSection("AssetServer").GetValue("Port"); @@ -70,4 +72,9 @@ app.UseAuthorization(); app.MapControllers(); +app.UseStaticFiles(); +app.MapDefaultControllerRoute(); + +app.UseCoreAdminCustomUrl("admin"); + app.Run(); diff --git a/src/sodoff.csproj b/src/sodoff.csproj index b03248d..11bf8ed 100644 --- a/src/sodoff.csproj +++ b/src/sodoff.csproj @@ -12,7 +12,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all