File size: 325 Bytes
de10f77
3d330e9
 
 
 
 
 
de10f77
3d330e9
 
1
2
3
4
5
6
7
8
9
10
11
import { collections } from '$lib/server/db';
import { pages } from '$lib/server/db/page';
import type { PageServerLoad } from './$types';

export const load: PageServerLoad = async () => {
	return {
		pages: Object.values(pages),
		photos: await collections.pictures.find({ productId: { $exists: false } }).toArray()
	};
};