added missing rarities to rarityicon component, updated mobile grid enhancements, moved search to sticky bar at the top

This commit is contained in:
zach
2026-02-17 15:49:33 -05:00
parent 3226527657
commit 4cd670c9b8
14 changed files with 70 additions and 44 deletions

View File

@@ -1,18 +0,0 @@
import type { APIRoute } from "astro";
import { db } from "../../db";
export const GET: APIRoute = async ({ url }) => {
const page = Number(url.searchParams.get("page") ?? 0);
const PAGE_SIZE = 256;
const cards = await db.query.cards.findMany({
where: { productLineName: "pokemon" },
limit: PAGE_SIZE,
offset: page * PAGE_SIZE,
with: { prices: true }
});
return new Response(JSON.stringify(cards), {
headers: { "Content-Type": "application/json" },
});
};