diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 11:54:00 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 11:56:24 +0100 |
| commit | e8ff326f0e5bd61fb0a8c22c48f296fcf0249830 (patch) | |
| tree | 19d8c026f8460ec577f446a7d61e68c38acddde0 /src/routes/api/auth/first-login.zig | |
| parent | 007bc3fe0615f38cb31d5116759ed3500f6fd3e6 (diff) | |
backend implement auth-service
Diffstat (limited to 'src/routes/api/auth/first-login.zig')
| -rw-r--r-- | src/routes/api/auth/first-login.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/api/auth/first-login.zig b/src/routes/api/auth/first-login.zig index 2fb8c02..34f04d8 100644 --- a/src/routes/api/auth/first-login.zig +++ b/src/routes/api/auth/first-login.zig @@ -1,14 +1,13 @@ const std = @import("std"); const Context = @import("../../context.zig"); -pub const needs_auth = true; -pub const method = .POST; +pub const access = .everyone; const Result = struct { is_first: bool, }; -pub fn handler(ctx: *Context) anyerror!Result { +pub fn post(ctx: *Context) anyerror!Result { _ = ctx; return .{ .is_first = false }; } |