summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
blob: 8b07a0e5b974cc29289889a434bceb7e50f5d0e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using WhatApi.Templates;

namespace WhatApi.Endpoints;

public class GetLoginPageEndpoint : BaseEndpoint
{
    [AllowAnonymous]
    [HttpGet("~/login")]
    public ActionResult Handle(string? error = null) {
        return Content(TemplateFulfiller.WebLoginPage(new TemplateFulfiller.WebLoginModel() {
            Error = error ?? string.Empty
        }), "text/html");
    }
}