14 lines
334 B
C#
14 lines
334 B
C#
var builder = WebApplication.CreateBuilder(args);
|
|
var app = builder.Build();
|
|
|
|
app.MapGet("/", () => new {
|
|
service = "demo-api",
|
|
version = "1.2.0",
|
|
hostname = Environment.MachineName,
|
|
timestamp = DateTime.UtcNow
|
|
});
|
|
|
|
app.MapGet("/health", () => Results.Ok(new { status = "healthy" }));
|
|
|
|
app.Run("http://0.0.0.0:5000");
|