move media to /media

This commit is contained in:
tresabhi committed 2026-05-24 12:55:30 -05:00
1 parent 1f690d11c7
commit ae96ae34c0
37 files changed
+10 -10

No files matched your search

@@ -40,14 +40,14 @@ function PriceEntry({ entry }: PriceEntryProps) {
<>
{entry.currency_price && (
<PriceInternal
icon={`/api/currencies/${entry.currency_price.currency_catalog_id}.webp`}
icon={`/media/currencies/${entry.currency_price.currency_catalog_id}.webp`}
value={entry.currency_price.amount}
/>
)}
{entry.stuff_price && (
<PriceInternal
icon={`/api/stuff/${entry.stuff_price.stuff_catalog_id}.webp`}
icon={`/media/stuff/${entry.stuff_price.stuff_catalog_id}.webp`}
value={entry.stuff_price.amount}
/>
)}
@@ -425,7 +425,7 @@ function LineElement({ index, lineName, stage }: LineElementProps) {
>
<img
className={styles.icon}
src={`/api/tanks/modules/${stage.stage_type}.webp`}
src={`/media/modules/${stage.stage_type}.webp`}
/>
{/* {stage.display_name} */}
@@ -2,7 +2,7 @@ import type { APIContext } from "astro";
import { api } from "../../../api/dynamic";
import { imageProxy } from "../../../api/imageProxy";
export { getStaticPaths } from "./[id].json";
export { getStaticPaths } from "../../[api]/avatars/[id].json";
/**
* Returns an avatar image based on its `id` in the `webp` format.
@@ -2,7 +2,7 @@ import type { APIContext } from "astro";
import { api } from "../../../api/dynamic";
import { imageProxy } from "../../../api/imageProxy";
export { getStaticPaths } from "./[id].json";
export { getStaticPaths } from "../../[api]/backgrounds/[id].json";
export async function GET({ params }: APIContext<never, { id: string }>) {
const background = await api.background(params.id);
@@ -1,13 +1,13 @@
import type { APIContext } from "astro";
import { api } from "../../../api/dynamic";
import { api } from "../../../../api/dynamic";
import {
clientUnmountedResponse,
notFoundResponse,
} from "../../../api/responses";
import { game } from "../../../game/game";
import { clientUnmounted } from "../../../game/unmounted";
} from "../../../../api/responses";
import { game } from "../../../../game/game";
import { clientUnmounted } from "../../../../game/unmounted";
export { getStaticPaths } from "./[id].json";
export { getStaticPaths } from "../../../[api]/tanks/[id].json";
export async function GET({ params }: APIContext<never, { id: string }>) {
if (clientUnmounted) return clientUnmountedResponse;