Event overview panel
This commit is contained in:
8
src/routes/private/events/+page.server.ts
Normal file
8
src/routes/private/events/+page.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export async function load({ locals }) {
|
||||
const { data: events, error } = await locals.supabase
|
||||
.from('events')
|
||||
.select('*')
|
||||
.order('date', { ascending: false });
|
||||
console.log('events', events);
|
||||
return { events };
|
||||
}
|
||||
Reference in New Issue
Block a user