cs-prices: full ByMykel catalog, every config, daily multi-source prices, item pages with working charts
Deploy production / deploy (push) Successful in 1m18s
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
This commit is contained in:
1 parent
9d79dfb43a
commit
9e89a615c6
16 files changed
+44371
-99
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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 });
|
||||
};
|
||||
Reference in new issue
Block a user