Added default route to swagger page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Xander Sigler 2023-01-02 23:08:35 -08:00
parent 83898a021f
commit 98c56a1769

View 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");
}
}
}