lila/apps/api/src/routes
lila 0118798e36 feat: guest play — allow singleplayer quiz without auth
- Add optionalAuth middleware: attaches session when present,
  never blocks (guests pass through)
- Make game endpoints (start/answer) accept optional auth
- GameSessionStore.userId: string → string | null
- Rate limiter falls back to IP for unauthenticated users
- Frontend: remove /play route guard, show 'Create account' CTA
  on score screen for guests
- Add tests for guest session creation, answer submission,
  and cross-user session isolation
2026-05-31 21:28:08 +02:00
..
apiRouter.ts refactor: dependency injection for GameSessionStore via composition root 2026-04-28 13:48:50 +02:00
gameRouter.ts feat: guest play — allow singleplayer quiz without auth 2026-05-31 21:28:08 +02:00
healthRouter.ts wip version of the api 2026-04-05 00:33:34 +02:00
lobbyRouter.ts feat(api): apply rate limiters to game and lobby routes 2026-04-23 20:36:36 +02:00