diff --git a/src/MalwareSampleExchange.Console/Controllers/HomeController.cs b/src/MalwareSampleExchange.Console/Controllers/HomeController.cs new file mode 100644 index 0000000..72f7faa --- /dev/null +++ b/src/MalwareSampleExchange.Console/Controllers/HomeController.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Authorization; + +namespace MalwareSampleExchange.Console.Controllers; +using Microsoft.AspNetCore.Mvc; + +[ApiController] +[Route("")] +[ApiExplorerSettings(IgnoreApi = true)] +public class HomeController : ControllerBase +{ + [AllowAnonymous] + [HttpGet] + public IActionResult Get() + { + return Redirect("~/swagger/index.html"); + } +} diff --git a/src/MalwareSampleExchange.Console/MalwareSampleExchange.Console.csproj b/src/MalwareSampleExchange.Console/MalwareSampleExchange.Console.csproj index bdfbef3..ae94785 100644 --- a/src/MalwareSampleExchange.Console/MalwareSampleExchange.Console.csproj +++ b/src/MalwareSampleExchange.Console/MalwareSampleExchange.Console.csproj @@ -41,8 +41,4 @@ - - <_ContentIncludedByDefault Remove="wwwroot\index.html" /> - <_ContentIncludedByDefault Remove="wwwroot\web.config" /> -