All checks were successful
Deploy production / deploy (push) Successful in 1m18s
- cs.skins catalog (weapons, knives, gloves, stickers, cases, agents, charms, …) refreshed weekly - every market config: wears in float range, StatTrak, Souvenir, Doppler/Gamma phases - cs.daily_prices (one row per config/stream/day, idempotent) from Skinport, Steam, CSFloat, Buff163 - cs.price_windows for 24h/7d/30d/90d sale aggregates, cs.fx_rates (ECB) - scripts/cs-prices.ts daily|catalog|prices; legacy ingest fixed for the new unique index - skin browser + /projects/cs-prices/[slug] with variant/wear/phase switcher and real charts - charts show points for short histories and pad sparse time axes
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
import { searchSkins } from '#lib/server/cs-prices.js';
|
|
import type { RequestHandler } from './$types';
|
|
|
|
export const GET: RequestHandler = async ({ url }) => {
|
|
const skins = await searchSkins(
|
|
url.searchParams.get('q') ?? '',
|
|
url.searchParams.get('kind') ?? '',
|
|
url.searchParams.get('sort') ?? 'popular',
|
|
Number(url.searchParams.get('limit') ?? 60) || 60,
|
|
Number(url.searchParams.get('offset') ?? 0) || 0
|
|
);
|
|
return Response.json({ skins });
|
|
};
|