This commit is contained in:
Clippii
2026-06-23 03:31:15 +01:00
parent 285bddb968
commit 0795bced60
3 changed files with 79 additions and 4 deletions
+3
View File
@@ -28,6 +28,9 @@ function isAllowedApiUrl(req) {
if (req.method !== 'GET' && req.method !== 'HEAD') return false
if (url.pathname === '/api/tss/tournaments') return true
if (/^\/api\/tss\/tournaments\/[^/]+$/.test(url.pathname)) return true
if (url.pathname === '/api/tss/leaderboard/teams') {
const keys = [...params.keys()]
const limit = Number(params.get('limit') || 100)