diff options
Diffstat (limited to 'backend/src')
| -rw-r--r-- | backend/src/API/AuthenticationAPI.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
