Disable Blazor, add ASP.NET and change readme

This commit is contained in:
Hukuta committed 2026-03-01 16:20:26 +09:00
1 parent ac96042489
commit 6338ef1c84
21 files changed
+48 -456

No files matched your search

+1 -24
View File
@@ -1,5 +1,3 @@
using CartriX.Server.Components;
namespace CartriX.Server
{
public class Program
@@ -7,30 +5,9 @@ namespace CartriX.Server
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/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.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.MapGet("/", () => "Hello World!");
app.Run();
}