(add): Baskets function
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { getSettings } from '$lib/server/settings';
|
||||
|
||||
export const load = async ({ fetch }) => {
|
||||
const settings = getSettings();
|
||||
const res = await fetch('/api');
|
||||
const data = await res.json();
|
||||
const resPrefixes = await fetch('/api/prefixes');
|
||||
const dataPrefixes = await resPrefixes.json();
|
||||
const settings = getSettings();
|
||||
const res = await fetch('/api');
|
||||
const data = await res.json();
|
||||
const resPrefixes = await fetch('/api/prefixes');
|
||||
const dataPrefixes = await resPrefixes.json();
|
||||
return { ...data, venueName: settings.venue_name, prefixes: dataPrefixes };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user