mirror of https://github.com/ivanch/tcc.git
add Controller
This commit is contained in:
parent
6f411c3c52
commit
f8acb38f99
|
@ -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)
|
||||
{
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue