18 lines
308 B
JavaScript
18 lines
308 B
JavaScript
import { getFromCMS } from 'utils/utils.js';
|
|
|
|
// needs to concat and format this text
|
|
const eventQuery = `*[_type == "events"]{
|
|
name,
|
|
category,
|
|
date,
|
|
location,
|
|
description,
|
|
"lastUpdated": _updatedAt,
|
|
}`;
|
|
|
|
export const load = async () => {
|
|
return {
|
|
events: await getFromCMS(eventQuery),
|
|
};
|
|
};
|