get em outta here
This commit is contained in:
parent
2aeb142ded
commit
84d20a70b9
1 changed files with 0 additions and 21 deletions
|
|
@ -1,21 +0,0 @@
|
|||
import { logger } from '$lib/server/logger';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import type { LayoutServerLoad } from './$types';
|
||||
|
||||
export const load: LayoutServerLoad = async ({ locals }) => {
|
||||
const { strapi } = locals;
|
||||
|
||||
try {
|
||||
const result = await strapi.SiteBackground();
|
||||
return {
|
||||
background: {
|
||||
url: result.data.Background.url
|
||||
}
|
||||
};
|
||||
} catch (err) {
|
||||
logger.error('Uh-oh!', err);
|
||||
if (err instanceof Error) {
|
||||
error(500, err);
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue