Initial .NET API service

This commit is contained in:
AppFactory Bot
2026-06-18 07:41:42 +00:00
commit f44ffae9fc
7 changed files with 413 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
var rootPath = Environment.GetEnvironmentVariable("ROOT_PATH");
if (!string.IsNullOrWhiteSpace(rootPath))
{
app.UsePathBase(rootPath);
}
app.MapGet("/", () => Results.Json(new
{
name = "csob",
service = "csob",
status = "ok"
}));
app.MapGet("/health", () => Results.Json(new
{
status = "ok"
}));
app.Run();