textures load!!!

This commit is contained in:
tresabhi committed 2026-06-09 12:48:52 -05:00
1 parent a348e005f7
commit 05dd4dbd98
3 files changed
+11 -2

No files matched your search

@@ -8,5 +8,7 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
});
export function GET({ params }: APIContext<never, { name: string }>) {
return Response.json(params);
const image = game!.texture(params.name);
const array = new Uint8Array(image);
return new Response(array);
}