diff options
| author | ivar <i@oiee.no> | 2025-12-04 23:30:25 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-04 23:30:25 +0100 |
| commit | deade767eace22a8c5281dcd5360c300395e2b5e (patch) | |
| tree | e4edf8e25413e07f1c5db6b57c5bd025f71df868 /api/WhatApi/Endpoints/GetTermsPageEndpoint.cs | |
| parent | 764cd7d4e22a71074930121ab8d0894aa6804d98 (diff) | |
| download | what-deade767eace22a8c5281dcd5360c300395e2b5e.tar.xz what-deade767eace22a8c5281dcd5360c300395e2b5e.zip | |
Add /terms
Diffstat (limited to 'api/WhatApi/Endpoints/GetTermsPageEndpoint.cs')
| -rw-r--r-- | api/WhatApi/Endpoints/GetTermsPageEndpoint.cs | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
