summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'api/WhatApi/Endpoints/GetLoginPageEndpoint.cs')
-rw-r--r--api/WhatApi/Endpoints/GetLoginPageEndpoint.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs b/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
new file mode 100644
index 0000000..dd17669
--- /dev/null
+++ b/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
@@ -0,0 +1,12 @@
+using WhatApi.Templates;
+
+namespace WhatApi.Endpoints;
+
+public class GetLoginPageEndpoint : BaseEndpoint
+{
+ [AllowAnonymous]
+ [HttpGet("~/login")]
+ public ActionResult Handle() {
+ return Content(TemplateFulfiller.WebLoginPage(), "text/html");
+ }
+} \ No newline at end of file