mirror of
https://github.com/KevinMidboe/planetposen-frontend.git
synced 2025-10-29 13:10:12 +00:00
All planetposen routes at version 0.1
This commit is contained in:
10
src/routes/receipt/[[id]]/+layout.server.ts
Normal file
10
src/routes/receipt/[[id]]/+layout.server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import validOrderId from '$lib/utils/validOrderId';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = ({ params }) => {
|
||||
const { id } = params;
|
||||
return {
|
||||
id,
|
||||
isValidReceipt: validOrderId(id)
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user