mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Fixing sitemap to use the event.fetch
This commit is contained in:
parent
2a9f41c701
commit
0d9b0839dc
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import type { ArticlePageLoad } from '$lib/types/article';
|
|||
|
||||
const site = `https://${PUBLIC_URL}`;
|
||||
|
||||
export const GET: RequestHandler = async function GET({ setHeaders }) {
|
||||
export const GET: RequestHandler = async function GET({ fetch, setHeaders }) {
|
||||
const resp = await fetch(`/api/articles`);
|
||||
const { totalPages }: ArticlePageLoad = await resp.json();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue