diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-01 17:16:03 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-01 17:16:03 +0200 |
| commit | 797596e1a389d255cc72e7351e84e89478dc161c (patch) | |
| tree | e19429c53cda8a5876f15c245e84c42dab4d3e6e /server/src | |
| parent | f17d408286aef780e407fb314c7496715b1e24a0 (diff) | |
| download | greatoffice-797596e1a389d255cc72e7351e84e89478dc161c.tar.xz greatoffice-797596e1a389d255cc72e7351e84e89478dc161c.zip | |
refactor: Explicitly require authorization and rely only on http codes
Diffstat (limited to 'server/src')
| -rw-r--r-- | server/src/Endpoints/Internal/Root/ValidSessionRoute.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/Endpoints/Internal/Root/ValidSessionRoute.cs b/server/src/Endpoints/Internal/Root/ValidSessionRoute.cs index d592418..f377ff6 100644 --- a/server/src/Endpoints/Internal/Root/ValidSessionRoute.cs +++ b/server/src/Endpoints/Internal/Root/ValidSessionRoute.cs @@ -2,8 +2,9 @@ namespace IOL.GreatOffice.Api.Endpoints.Internal.Root; public class ValidSessionRoute : RouteBaseSync.WithoutRequest.WithActionResult { + [Authorize] [HttpGet("~/_/valid-session")] public override ActionResult Handle() { - return Ok("VALID"); + return Ok(); } }
\ No newline at end of file |
