Skip to content

Commit

Permalink
Remove mvc (#314)
Browse files Browse the repository at this point in the history
* Use web application

* dotnet format

* Refactoring

* Extend routes

---------

Co-authored-by: Boris Ahrens <boris.ahrens@gdata.de>
  • Loading branch information
borisahrens and Boris Ahrens authored Mar 8, 2024
1 parent f693b7c commit 50c7665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public SampleApiController(ISampleStorageHandler sampleStorageHandler, ILogger<S
/// <param name="token">download</param>
/// <param name="cancellationToken"></param>
[HttpGet]
[Route("/v1/download")]
[Route("downloads/v1/download")]
[AllowAnonymous]
[ValidateModelState]
[SwaggerResponse(StatusCodes.Status400BadRequest, "The token is expired.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public TokensApiController(ILogger<TokensApiController> logger, IListRequester l
/// <param name="end">(Default: today's date )</param>
/// <param name="token"></param>
[HttpGet]
[Route("/v1/list")]
[Route("lists/v1/list")]
[ValidateModelState]
[SwaggerResponse(StatusCodes.Status400BadRequest, "Start Date has to be before end date")]
[SwaggerResponse(StatusCodes.Status401Unauthorized, "Unauthorized!")]
Expand Down

0 comments on commit 50c7665

Please sign in to comment.