Data/Users: Rename layout.server.ts to page.server.ts

This commit is contained in:
2025-01-25 18:29:43 +01:00
parent d007cac4c0
commit 6bb065ba6c

View File

@ -1,7 +1,7 @@
import type { User } from "$lib/schema";
import type { LayoutServerLoad } from "./$types";
import type { PageServerLoad } from "./$types";
export const load: LayoutServerLoad = async ({ fetch, locals }) => {
export const load: PageServerLoad = async ({ fetch, locals }) => {
const fetch_users = async (): Promise<User[]> => {
const users: User[] = await locals.pb
.collection("users")