15 lines
300 B
TypeScript
15 lines
300 B
TypeScript
import { error } from '@sveltejs/kit';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load: PageLoad = ({ params }) => {
|
|
// TODO check if user exists
|
|
return {
|
|
userId: params.user
|
|
}
|
|
|
|
//throw error(404, 'Not found');
|
|
}
|
|
|
|
export interface UserPage {
|
|
userId: number
|
|
}
|