7 Commits

Author SHA1 Message Date
achmad ab6b64c065 fix: add missing DELETE export to catch-all route
Next.js [...path] route only exported GET/POST/PUT, causing all DELETE
requests (including deck deletion) to be silently rejected before
reaching the router. Deck delete was impossible.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 05:44:27 +07:00
achmad 998c3b5f8f feat: add logging to cards/deck endpoints
Log method, path, steamId, card count, deck names, and errors for
all card-levels and decks API calls to help debug persistence issues.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 05:41:26 +07:00
achmad 2ca87af1b5 fix: return decks as map keyed by deck_index
Game client Lua expects GET /decks to return a map of
{deck_index: {name, cards}} not a flat array. Array format caused
self.decks to be set to wrong structure, breaking deck lookups and
triggering phantom deck creation on every interaction.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 03:54:04 +07:00
achmadss e50b0fa46d fix: add DELETE and batch PUT endpoints for decks 2026-05-30 03:38:50 +07:00
achmad 7577ffdf02 fix: add missing chat_wheel and arcade_pity handlers
Game client saves/loads chat_wheel and arcade_pity data via GET/PUT but
backend had no routes, causing silent data loss on restart (same pattern
as the purchases bug). Added schema columns, migrations, and routes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 20:52:07 +07:00
achmad 26855bebf5 fix: add missing GET handler for player purchases
Game client loads purchases via GET /player/:steamId/purchases on
game start but only the POST handler existed, causing 404. Added GET
handler that returns item_ids from the purchases table.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 20:43:27 +07:00
achmad 78d0b17354 initial commit 2026-05-29 20:04:31 +07:00