From 50c7665a18681f36b30e0d90d0b7103c83c1e731 Mon Sep 17 00:00:00 2001 From: borisahrens <45789221+borisahrens@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:46:29 +0100 Subject: [PATCH] Remove mvc (#314) * Use web application * dotnet format * Refactoring * Extend routes --------- Co-authored-by: Boris Ahrens --- .../Controllers/SampleApiController.cs | 2 +- .../Controllers/TokensApiController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MalwareSampleExchange.Console/Controllers/SampleApiController.cs b/src/MalwareSampleExchange.Console/Controllers/SampleApiController.cs index 017c3ea..e422348 100644 --- a/src/MalwareSampleExchange.Console/Controllers/SampleApiController.cs +++ b/src/MalwareSampleExchange.Console/Controllers/SampleApiController.cs @@ -52,7 +52,7 @@ public SampleApiController(ISampleStorageHandler sampleStorageHandler, ILoggerdownload /// [HttpGet] - [Route("/v1/download")] + [Route("downloads/v1/download")] [AllowAnonymous] [ValidateModelState] [SwaggerResponse(StatusCodes.Status400BadRequest, "The token is expired.")] diff --git a/src/MalwareSampleExchange.Console/Controllers/TokensApiController.cs b/src/MalwareSampleExchange.Console/Controllers/TokensApiController.cs index b06cffc..3df1493 100644 --- a/src/MalwareSampleExchange.Console/Controllers/TokensApiController.cs +++ b/src/MalwareSampleExchange.Console/Controllers/TokensApiController.cs @@ -39,7 +39,7 @@ public TokensApiController(ILogger logger, IListRequester l /// (Default: today's date ) /// [HttpGet] - [Route("/v1/list")] + [Route("lists/v1/list")] [ValidateModelState] [SwaggerResponse(StatusCodes.Status400BadRequest, "Start Date has to be before end date")] [SwaggerResponse(StatusCodes.Status401Unauthorized, "Unauthorized!")]