added missing rarities to rarityicon component, updated mobile grid enhancements, moved search to sticky bar at the top
This commit is contained in:
@@ -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" },
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user