summaryrefslogtreecommitdiff
path: root/backend/src/API/AuthenticationAPI.zig
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/API/AuthenticationAPI.zig')
-rw-r--r--backend/src/API/AuthenticationAPI.zig1
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;
}