diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-19 09:15:49 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-19 09:15:49 +0100 |
| commit | 4c06eb64cbed3562e428ce59857d1763098638f3 (patch) | |
| tree | cc9c8164e76cd48e1dd4ef963329dcfa3c1b152f /src/routes/api/session | |
| parent | 6201307fecf8398a1b53bf276bc08bfbb3524899 (diff) | |
allow images to upload and sort if according to their datetime
Diffstat (limited to 'src/routes/api/session')
| -rw-r--r-- | src/routes/api/session/current.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/api/session/current.zig b/src/routes/api/session/current.zig index e86c115..897d01c 100644 --- a/src/routes/api/session/current.zig +++ b/src/routes/api/session/current.zig @@ -9,6 +9,7 @@ const Result = struct { name: []const u8, full_name: []const u8, birthday: []const u8, + is_admin: bool, }; pub fn get(ctx: *Context) !Result { @@ -21,5 +22,6 @@ pub fn get(ctx: *Context) !Result { .name = session.info.name, .full_name = session.info.full_name, .birthday = session.info.birthday, + .is_admin = session.info.is_admin, }; } |