add Controller

This commit is contained in:
José Henrique Ivanchechen 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 });
}
}
}

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33927.249
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tcc-app", "tcc-app.csproj", "{FBD7660C-B50A-4776-AAEF-A1A0D0D253C3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TCC.APP", "TCC.APP.csproj", "{FBD7660C-B50A-4776-AAEF-A1A0D0D253C3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution