feat(api): add tournament code helpers

This commit is contained in:
dahyeon committed 2026-04-20 22:42:00 +09:00
1 parent 422472a641
commit 6bad4861e6
4 files changed
+140

No files matched your search

@@ -0,0 +1,4 @@
export const TOURNAMENT_CODE_PATTERN = /^[A-Z0-9-]{8,}$/i;
export const TOURNAMENT_CODE_EXPIRY_MARGIN_MS = 24 * 60 * 60 * 1000;
export const TOURNAMENT_CODE_EXPIRING_SOON_MS = 7 * 24 * 60 * 60 * 1000;
export const DEFAULT_TOURNAMENT_GAME_COUNT = 3;