-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add home controller with redirection
- Loading branch information
Boris Ahrens
committed
May 21, 2024
1 parent
594ebb3
commit f582beb
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/MalwareSampleExchange.Console/Controllers/HomeController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters