From f8acb38f994357e0aa3cdee9293dd72e97e2de77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique=20Ivanchechen?= Date: Fri, 18 Aug 2023 15:14:53 -0300 Subject: [PATCH] add Controller --- Controllers/{Blur.cs => ImageController.cs} | 1 + Controllers/StatusController.cs | 17 +++++++++++++++++ tcc-app.csproj => TCC.APP.csproj | 0 tcc-app.sln => TCC.APP.sln | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) rename Controllers/{Blur.cs => ImageController.cs} (95%) create mode 100644 Controllers/StatusController.cs rename tcc-app.csproj => TCC.APP.csproj (100%) rename tcc-app.sln => TCC.APP.sln (88%) diff --git a/Controllers/Blur.cs b/Controllers/ImageController.cs similarity index 95% rename from Controllers/Blur.cs rename to Controllers/ImageController.cs index 1f79152..8b1c4eb 100644 --- a/Controllers/Blur.cs +++ b/Controllers/ImageController.cs @@ -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) { diff --git a/Controllers/StatusController.cs b/Controllers/StatusController.cs new file mode 100644 index 0000000..fb1416e --- /dev/null +++ b/Controllers/StatusController.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Mvc; + +namespace TCC.Controllers +{ + [ApiController] + [Route("")] + public class StatusController : ControllerBase + { + public StatusController() { } + + [HttpGet("ok")] + public async Task ReturnOk() + { + return Ok(new { status = 200 }); + } + } +} diff --git a/tcc-app.csproj b/TCC.APP.csproj similarity index 100% rename from tcc-app.csproj rename to TCC.APP.csproj diff --git a/tcc-app.sln b/TCC.APP.sln similarity index 88% rename from tcc-app.sln rename to TCC.APP.sln index 3a2915b..e4b8d07 100644 --- a/tcc-app.sln +++ b/TCC.APP.sln @@ -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