💄 Optimize the page rendering in zone

This commit is contained in:
2025-11-21 01:21:40 +08:00
parent 75b8567a28
commit 226a64df41
4 changed files with 62 additions and 10 deletions

View File

@@ -11,8 +11,7 @@ builder.AddServiceDefaults();
builder.ConfigureAppKestrel(builder.Configuration);
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddRazorPages(options => options.Conventions.AddPageRoute("/Index", "{**path}"));
builder.Services.AddControllers();
builder.Services.AddAppServices();
@@ -54,4 +53,4 @@ app.MapRazorPages();
app.UseSwaggerManifest("DysonNetwork.Zone");
app.Run();
app.Run();