Skip to content

Commit

Permalink
Merge pull request #41 from runeharlyk/pass-fetch-function
Browse files Browse the repository at this point in the history
Pass fetch in load function
  • Loading branch information
theelims authored Apr 9, 2024
2 parents 52cac05 + 6f0a1f1 commit f25ebfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { LayoutLoad } from './$types';
export const prerender = false;
export const ssr = false;

export const load = (async () => {
export const load = (async ({ fetch }) => {
const result = await fetch('/rest/features');
const item = await result.json();
return {
Expand Down

0 comments on commit f25ebfb

Please sign in to comment.