mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Adding server load to process games.
This commit is contained in:
parent
bfcb04448a
commit
fa26cbc91e
1 changed files with 10 additions and 1 deletions
|
|
@ -1,6 +1,15 @@
|
||||||
import type { Actions } from '../$types';
|
import type { Actions, PageServerLoad } from '../$types';
|
||||||
import { Games } from '$root/search/actions';
|
import { Games } from '$root/search/actions';
|
||||||
|
|
||||||
|
export const load: PageServerLoad = ({ request }) => {
|
||||||
|
console.log('page server load request', request)
|
||||||
|
|
||||||
|
return {
|
||||||
|
games: [],
|
||||||
|
totalCount: 0
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export const actions: Actions = {
|
export const actions: Actions = {
|
||||||
default: Games.search,
|
default: Games.search,
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue