buildout full stack functionality

This commit is contained in:
KS Jannette
2026-07-30 18:55:28 -04:00
parent f5ded658b8
commit 04a2910af5
22 changed files with 3759 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
using Microsoft.AspNetCore.Mvc;
namespace Backend.Controllers;
[Route("v1/[controller]")]
[ApiController]
public class InfoController : ControllerBase
{
private readonly IWebHostEnvironment _environment;
public InfoController(IWebHostEnvironment environment)
{
_environment = environment;
}
[HttpGet]
public IActionResult Get()
{
var assembly = typeof(InfoController).Assembly.GetName();
return Ok(new
{
name = assembly.Name ?? "backend",
version = assembly.Version?.ToString(3) ?? "0.0.0",
environment = _environment.EnvironmentName,
timestamp = DateTime.UtcNow,
});
}
}