feat: more maps

This commit is contained in:
tresabhi committed 2025-04-02 16:00:18 -05:00
1 parent b2684e3152
commit ed5d2e3ff4
4 files changed
+12 -9

No files matched your search

@@ -1,6 +1,5 @@
import { asset } from '@blitzkit/core';
import type { APIRoute } from 'astro';
import { blobProxy } from '../../../../../core/blitzkit/blobMirror';
import { apiBlobProxy } from '../../../../../core/blitzkit/blobMirror';
export { getStaticPaths } from '../meta.json';
@@ -11,5 +10,5 @@ export { getStaticPaths } from '../meta.json';
* @returns PNG.
*/
export const GET: APIRoute<{}, { id: string }> = async ({ params }) => {
return await blobProxy(asset(`/tanks/${params.id}/icons/big.png`));
return await apiBlobProxy(`/tanks/${params.id}/icons/big.webp`);
};
@@ -1,15 +1,14 @@
import { asset } from '@blitzkit/core';
import type { APIRoute } from 'astro';
import { blobProxy } from '../../../../../core/blitzkit/blobMirror';
import { apiBlobProxy } from '../../../../../core/blitzkit/blobMirror';
export { getStaticPaths } from '../meta.json';
/**
* Returns the small icon for a tank, the image that appears in the team list in a battle or the loading screen. Use tanks/list.json for all valid ids.
* Returns the small icon for a tank, the image that appears in the tank carousal in the garage. Use tanks/list.json for all valid ids.
*
* @param id The tank id.
* @returns PNG.
*/
export const GET: APIRoute<{}, { id: string }> = async ({ params }) => {
return await blobProxy(asset(`/tanks/${params.id}/icons/small.png`));
return await apiBlobProxy(`/tanks/${params.id}/icons/small.webp`);
};