13 lines
305 B
TypeScript
13 lines
305 B
TypeScript
export const load = ({ locals, cookies }) => {
|
|
const { user, region, apiURL, fastifyURL, wsURL, apiKey } = locals;
|
|
|
|
return {
|
|
user: user || undefined,
|
|
region,
|
|
cookieConsent: cookies?.get('cookie-consent'),
|
|
apiURL,
|
|
fastifyURL,
|
|
wsURL,
|
|
apiKey,
|
|
};
|
|
}; |