mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
feat: custom loader
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user