23 lines
414 B
C#
23 lines
414 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 = "iDoklad",
|
|
service = "idoklad",
|
|
status = "ok"
|
|
}));
|
|
|
|
app.MapGet("/health", () => Results.Json(new
|
|
{
|
|
status = "ok"
|
|
}));
|
|
|
|
app.Run();
|