mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: more maps
This commit is contained in:
1 parent
b2684e3152
commit
ed5d2e3ff4
4 files changed
+12
-9
No files matched your search
+2
-3
@@ -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`);
|
||||
};
|
||||
+3
-4
@@ -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`);
|
||||
};
|
||||
Reference in new issue
Block a user