using Microsoft.AspNetCore.Mvc; using w4c_workflows.Services; namespace w4c_workflows.Controllers; /// /// Self-description of this workflows-api instance. Public (no operator key): /// the frontend uses it to show the platform runtime's name/version in the /// runtime selector, and self-hosted runtimes report the same shape when they /// connect. Contains no sensitive data. /// [ApiController] [Route("api/about")] public class AboutController : ControllerBase { private readonly RuntimeSelfInfoProvider _info; public AboutController(RuntimeSelfInfoProvider info) { _info = info; } [HttpGet] public IActionResult Get() { var i = _info.Get(); return Ok(new { i.Name, i.Version, i.StartedAt, i.MultiTenant }); } }