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 && ( {entry.currency_price && (
<PriceInternal <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} value={entry.currency_price.amount}
/> />
)} )}
{entry.stuff_price && ( {entry.stuff_price && (
<PriceInternal <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} value={entry.stuff_price.amount}
/> />
)} )}
@@ -425,7 +425,7 @@ function LineElement({ index, lineName, stage }: LineElementProps) {
> >
<img <img
className={styles.icon} className={styles.icon}
src={`/api/tanks/modules/${stage.stage_type}.webp`} src={`/media/modules/${stage.stage_type}.webp`}
/> />
{/* {stage.display_name} */} {/* {stage.display_name} */}
@@ -2,7 +2,7 @@ import type { APIContext } from "astro";
import { api } from "../../../api/dynamic"; import { api } from "../../../api/dynamic";
import { imageProxy } from "../../../api/imageProxy"; 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. * 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 { api } from "../../../api/dynamic";
import { imageProxy } from "../../../api/imageProxy"; 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 }>) { export async function GET({ params }: APIContext<never, { id: string }>) {
const background = await api.background(params.id); const background = await api.background(params.id);
@@ -1,13 +1,13 @@
import type { APIContext } from "astro"; import type { APIContext } from "astro";
import { api } from "../../../api/dynamic"; import { api } from "../../../../api/dynamic";
import { import {
clientUnmountedResponse, clientUnmountedResponse,
notFoundResponse, notFoundResponse,
} from "../../../api/responses"; } from "../../../../api/responses";
import { game } from "../../../game/game"; import { game } from "../../../../game/game";
import { clientUnmounted } from "../../../game/unmounted"; 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 }>) { export async function GET({ params }: APIContext<never, { id: string }>) {
if (clientUnmounted) return clientUnmountedResponse; if (clientUnmounted) return clientUnmountedResponse;