From e051007ecdb3097bc9942fd9db369101a9568a0d Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 23 Dec 2023 08:54:55 +0100 Subject: Basic test --- ModAS.Server/Controllers/HomeController.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ModAS.Server/Controllers/HomeController.cs (limited to 'ModAS.Server/Controllers/HomeController.cs') 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 _logger; + + public HomeController(ILogger logger) + { + _logger = logger; + } + + [HttpGet("/_matrix/_modas")] + public IActionResult Index() { + //return wwwroot/index.html + return LocalRedirect("/index.html"); + } +} \ No newline at end of file -- cgit 1.5.1