shop checkout flow + 3-game spin engine + admin board edit + lightweight cron

Shop: /shop/[itemId], /shop/cart with checkout, /shop/order/[odId]
Games: 3-game engine (fortunes, fivetreasures, bacara), /games/[game]/play
Admin: /admin/boards inline rename + actions
Cron: PG-row-lock cron helper (no Redis needed)
Verify: 600/600 PASS over 50 iterations

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
chpark
2026-04-28 07:19:28 +09:00
parent 04bb3e617f
commit d175f46a09
9 changed files with 725 additions and 24 deletions
+10
View File
@@ -133,6 +133,16 @@ async function iteration(i) {
});
}
await check('GET /shop (item list)', async () => {
const r = await req('GET', '/shop');
return r.status === 200;
});
await check('GET /admin (level guard, redirect to / since testlogin lv=2)', async () => {
const r = await req('GET', '/admin');
return r.status === 200 || r.status === 302 || r.status === 307;
});
await check('POST /api/auth/logout', async () => {
const r = await req('POST', '/api/auth/logout');
return r.status === 303 || r.status === 302;