webcompile/src/routes/blog/tags/+page.server.ts

11 lines
207 B
TypeScript
Raw Normal View History

import type { PageServerLoad } from "./$types";
2023-01-01 04:51:53 +05:30
import fetchApi from "$lib/ghost";
export const load: PageServerLoad = async () => {
2023-01-01 04:51:53 +05:30
const data = await fetchApi("tags");
2023-01-01 04:51:53 +05:30
return {
tags: data.tags
}
};