Added default route to swagger page
continuous-integration/drone/push Build is passing Details

pull/1/head
Xander Sigler 2 years ago
parent 83898a021f
commit 98c56a1769

@ -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…
Cancel
Save