mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-27 08:11:48 +00:00
add Controller
This commit is contained in:
@@ -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)
|
||||
{
|
17
Controllers/StatusController.cs
Normal file
17
Controllers/StatusController.cs
Normal 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 });
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user