blob: 59d468463d4159eae2bb5e45f1b4ea9dc3e17da6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
const std = @import("std");
const memora = @import("memora");
const Context = memora.Context;
const Storage = memora.Storage;
pub const access = .admins;
const Response = struct {
users: [][]const u8,
};
pub fn get(ctx: *Context) !Response {
return .{
.users = try Storage.User.list(ctx.storage, ctx.allocator)
};
}
|