10 lines
328 B
TypeScript
10 lines
328 B
TypeScript
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');
|
|
};
|