From 797596e1a389d255cc72e7351e84e89478dc161c Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 1 Oct 2022 23:16:03 +0800 Subject: refactor: Explicitly require authorization and rely only on http codes --- server/src/Endpoints/Internal/Root/ValidSessionRoute.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3