Changed the structure so git root folder is also project root folder.

This commit is contained in:
2026-03-18 01:32:23 +01:00
parent cb5db8df2e
commit a3fb294e4b
120 changed files with 75 additions and 262 deletions

18
Program.cs Normal file
View File

@@ -0,0 +1,18 @@
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers(); // For API controllers
var app = builder.Build();
app.MapGet("/api/test", () => "test works!");
// Configure the HTTP request pipeline.
// No need for UseHttpsRedirection or UseHsts, as Nginx handles SSL.
app.UseDefaultFiles(); // Enable default file serving
app.UseStaticFiles(); // Serve static files from wwwroot
app.UseRouting();
app.UseAuthorization();
app.MapControllers(); // Map API controllers
app.Run();