Added default route to swagger page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
83898a021f
commit
98c56a1769
21
AdventOfCode/Controllers/HomeController.cs
Normal file
21
AdventOfCode/Controllers/HomeController.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AdventOfCode.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public class HomeController : ControllerBase
|
||||
{
|
||||
[Route("")]
|
||||
[HttpGet]
|
||||
public IActionResult Index()
|
||||
{
|
||||
return Redirect("/swagger/Index.html");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user