10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
import { db } from "$lib/server/db/db";
|
|
import type { ServerLoad } from "@sveltejs/kit";
|
|
|
|
export const load: ServerLoad = async ({ locals: { guard } }) => {
|
|
guard.requiresAdmin().orRedirects();
|
|
|
|
return {
|
|
users: db.data.users,
|
|
}
|
|
}; |