23 lines
408 B
C#
23 lines
408 B
C#
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();
|