aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-01 17:16:03 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-01 17:16:03 +0200
commit797596e1a389d255cc72e7351e84e89478dc161c (patch)
treee19429c53cda8a5876f15c245e84c42dab4d3e6e
parentf17d408286aef780e407fb314c7496715b1e24a0 (diff)
downloadgreatoffice-797596e1a389d255cc72e7351e84e89478dc161c.tar.xz
greatoffice-797596e1a389d255cc72e7351e84e89478dc161c.zip
refactor: Explicitly require authorization and rely only on http codes
-rw-r--r--server/src/Endpoints/Internal/Root/ValidSessionRoute.cs3
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