Skip to content

Commit 085fce0

Browse files
committed
add base of URI redirects for helpful things
1 parent 5379943 commit 085fce0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Ryujinx.Systems.Update.Server.Helpers;
3+
4+
namespace Ryujinx.Systems.Update.Server.Controllers;
5+
6+
[Route("/")]
7+
[ApiController]
8+
public class IndexController : ControllerBase
9+
{
10+
[HttpGet]
11+
public ActionResult Index()
12+
=> Redirect("https://github.com/Ryubing/UpdateServer/");
13+
14+
[HttpGet("docs"), HttpGet("info"), HttpGet("help")]
15+
public ActionResult Help()
16+
{
17+
return CommandLineState.UseSwagger
18+
? Redirect("/swagger")
19+
: Index();
20+
}
21+
}

0 commit comments

Comments
 (0)