summaryrefslogtreecommitdiff
path: root/backend/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/main.zig')
-rw-r--r--backend/src/main.zig8
1 files changed, 2 insertions, 6 deletions
diff --git a/backend/src/main.zig b/backend/src/main.zig
index ff90540..6def1a1 100644
--- a/backend/src/main.zig
+++ b/backend/src/main.zig
@@ -40,12 +40,8 @@ pub fn main() !void {
try server.listen();
}
-fn index(data: *handler.RequestData, _: *httpz.Request, res: *httpz.Response) !void {
- if (data.User == null) {
- try res.json(.{.status = "Unauthnticated"}, .{});
- return;
- }
- try res.json(data.User, .{});
+fn index(_: *handler.RequestData, _: *httpz.Request, res: *httpz.Response) !void {
+ try res.json(.{.Message = "Ok"}, .{});
}
test "TestRunner" {