feat(backend): scaffold ASP.NET Core Web API with health endpoint

This commit is contained in:
Rafał Tyński
2026-10-03 18:30:43 +02:00
parent 74f14e93ea
commit f26ad1744e
7 changed files with 169 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
namespace TarninaHub.Controllers;
[ApiController]
[Route("api/health")]
public class HealthController : ControllerBase
{
[HttpGet]
public ActionResult<HealthResponse> Get()
{
return Ok(new HealthResponse("ok"));
}
}
public record HealthResponse(string Status);