Added Main

This commit is contained in:
2025-02-08 14:01:15 +01:00
parent d14f828514
commit 621df92b27
187 changed files with 8574 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.VisualBasic;
using noteApi.Interfaces;
namespace noteApi.Controllers
{
[Route("api/status")]
[ApiController]
public class StatusController : ControllerBase
{
public readonly INoteRepository _noteRepo;
public StatusController(INoteRepository noteRepository)
{
_noteRepo = noteRepository;
}
[HttpGet]
public async Task<IActionResult> Get()
{
try
{
var stock = await _noteRepo.GetAllAsync();
return Ok();
}
catch (Exception ex)
{
return StatusCode(503);
}
}
}
}