Add featuredAdventures table and related code
This commit is contained in:
11
src/routes/featured/+page.server.ts
Normal file
11
src/routes/featured/+page.server.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { db } from '$lib/db/db.server';
|
||||
import { featuredAdventures } from '$lib/db/schema';
|
||||
import type { Adventure } from '$lib/utils/types';
|
||||
|
||||
|
||||
export const load = (async () => {
|
||||
const result = await db.select().from(featuredAdventures)
|
||||
return {
|
||||
result : result as Adventure[]
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user