Adding multiple projects & API

This commit is contained in:
2023-11-19 16:41:00 -03:00
parent 91e36a811d
commit 441bcc4e96
16 changed files with 297 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
using Kasbot.API.Services;
using Microsoft.AspNetCore.Mvc;
namespace Kasbot.API.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class StatusController : Controller
{
private readonly StatusService statusService;
public StatusController(StatusService statusService)
{
this.statusService = statusService;
}
[HttpGet("ok")]
public async Task<IActionResult> IsOk()
{
var result = await statusService.IsOk();
return Ok(result);
}
}
}