We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5379943 commit 085fce0Copy full SHA for 085fce0
1 file changed
src/Server/Controllers/IndexController.cs
@@ -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