From deade767eace22a8c5281dcd5360c300395e2b5e Mon Sep 17 00:00:00 2001 From: ivar Date: Thu, 4 Dec 2025 23:30:25 +0100 Subject: Add /terms --- api/WhatApi/Endpoints/GetTermsPageEndpoint.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/WhatApi/Endpoints/GetTermsPageEndpoint.cs (limited to 'api/WhatApi/Endpoints/GetTermsPageEndpoint.cs') diff --git a/api/WhatApi/Endpoints/GetTermsPageEndpoint.cs b/api/WhatApi/Endpoints/GetTermsPageEndpoint.cs new file mode 100644 index 0000000..230c8b3 --- /dev/null +++ b/api/WhatApi/Endpoints/GetTermsPageEndpoint.cs @@ -0,0 +1,13 @@ +using WhatApi.Templates; + +namespace WhatApi.Endpoints; + +public class GetTermsPageEndpoint : BaseEndpoint +{ + + [AllowAnonymous] + [HttpGet("~/terms")] + public ActionResult Handle() { + return Content(TemplateFulfiller.WebTermsPage(), "text/html"); + } +} \ No newline at end of file -- cgit v1.3