This commit is contained in:
Hukuta committed 2026-04-23 06:50:53 +09:00
1 parent d1e5906b7a
commit 37b95a6179
70 files changed
+60560 -1

No files matched your search

+20
View File
@@ -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();