feat: custom loader

This commit is contained in:
TrèsAbhi committed 2026-01-16 19:28:10 -06:00
1 parent fc4d8b5ad0
commit 369ac113fa
4 files changed
+60 -40

No files matched your search

@@ -9,6 +9,16 @@ export const getStaticPaths = (async () => {
}));
}) satisfies GetStaticPaths;
/**
* This is a very long.
* And boring.
*
* But important.
* Developer comment.
*
* Meant to test.
* The **formatting**!
*/
export async function GET({ params }: APIContext<never, { id: string }>) {
const avatar = await api.avatar(params.id);
return Response.json(avatar);