2022-11-11 18:23:56 +01:00

15 lines
365 B
TypeScript

import type { PageLoad } from './$types';
import { repositories } from '../data/api';
export const prerender = true;
const base = repositories.page_load_impl();
export const load: PageLoad = async ({ fetch }) => {
// The entire site may softlock if the user sets a bad API url if we don't do this.
try {
return await base({ fetch });
} catch(_) { }
}