Adding server load to process games.

This commit is contained in:
Bradley Shellnut 2022-10-12 23:49:06 -05:00
parent bfcb04448a
commit fa26cbc91e

View file

@ -1,6 +1,15 @@
import type { Actions } from '../$types';
import type { Actions, PageServerLoad } from '../$types';
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 = {
default: Games.search,
}