add Controller

This commit is contained in:
2023-08-18 15:14:53 -03:00
parent 6f411c3c52
commit f8acb38f99
4 changed files with 19 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ namespace TCC.Controllers
public class ImageController : ControllerBase
{
private ImageService ImageService { get; set; }
public byte[] ImageData { get; set; }
public ImageController(ImageService imageService)
{

View File

@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
namespace TCC.Controllers
{
[ApiController]
[Route("")]
public class StatusController : ControllerBase
{
public StatusController() { }
[HttpGet("ok")]
public async Task<IActionResult> ReturnOk()
{
return Ok(new { status = 200 });
}
}
}