mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-06 04:50:55 +00:00
bl
This commit is contained in:
1 parent
d1e5906b7a
commit
37b95a6179
70 files changed
+60560
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using CartriX.Web.Components;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddControllers();
|
||||
builder.AddOpenApi();
|
||||
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
||||
|
||||
var app = builder.Build();
|
||||
app.Services.MapControllers();
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.Services.MapScalarApiReference();
|
||||
app.MapOpenApi();
|
||||
}
|
||||
|
||||
|
||||
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
|
||||
app.MapStaticAssets();
|
||||
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
|
||||
app.Run();
|
||||
Reference in new issue
Block a user