data browser wip
This commit is contained in:
9
src/routes/lists/db/+page.server.ts
Normal file
9
src/routes/lists/db/+page.server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { requireOwner } from '#lib/server/owner.js';
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
// The database overview lives on /lists itself (shown to the owner only).
|
||||
export const load: PageServerLoad = (event) => {
|
||||
requireOwner(event);
|
||||
redirect(307, '/lists#database');
|
||||
};
|
||||
Reference in New Issue
Block a user