From 6bb065ba6c734a02aeef30161b7eaae48cc39892 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 25 Jan 2025 18:29:43 +0100 Subject: [PATCH] Data/Users: Rename layout.server.ts to page.server.ts --- src/routes/data/users/{+layout.server.ts => +page.server.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/routes/data/users/{+layout.server.ts => +page.server.ts} (77%) diff --git a/src/routes/data/users/+layout.server.ts b/src/routes/data/users/+page.server.ts similarity index 77% rename from src/routes/data/users/+layout.server.ts rename to src/routes/data/users/+page.server.ts index ead2408..3a0ad14 100644 --- a/src/routes/data/users/+layout.server.ts +++ b/src/routes/data/users/+page.server.ts @@ -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 => { const users: User[] = await locals.pb .collection("users")