summary refs log tree commit diff
path: root/ModAS.Server/Controllers/HomeController.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ModAS.Server/Controllers/HomeController.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/ModAS.Server/Controllers/HomeController.cs b/ModAS.Server/Controllers/HomeController.cs
new file mode 100644

index 0000000..290441e --- /dev/null +++ b/ModAS.Server/Controllers/HomeController.cs
@@ -0,0 +1,21 @@ +using System.Diagnostics; +using Microsoft.AspNetCore.Mvc; + +namespace WebApplication1.Controllers; + +[ApiController] +public class HomeController : Controller +{ + private readonly ILogger<HomeController> _logger; + + public HomeController(ILogger<HomeController> logger) + { + _logger = logger; + } + + [HttpGet("/_matrix/_modas")] + public IActionResult Index() { + //return wwwroot/index.html + return LocalRedirect("/index.html"); + } +} \ No newline at end of file