From ffbeed38434ece7be28acdf7e3bd900c801a636d Mon Sep 17 00:00:00 2001 From: physcik Date: Thu, 7 May 2026 15:44:45 +0500 Subject: Ranged weapons edit page --- backend/src/API/AuthenticationAPI.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') diff --git a/backend/src/API/AuthenticationAPI.zig b/backend/src/API/AuthenticationAPI.zig index ea398ba..8792fd0 100644 --- a/backend/src/API/AuthenticationAPI.zig +++ b/backend/src/API/AuthenticationAPI.zig @@ -14,6 +14,7 @@ pub fn RegisterEndpoints(router: *httpz.Router(*Handler.Handler,*const fn (*Hand fn getUser(data: *Handler.RequestData, _: *httpz.Request, res: *httpz.Response) !void { if (data.User == null) { + res.setStatus(.unauthorized); try res.json(.{.status = "Unauthnticated"}, .{}); return; } -- cgit v1.3