slop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user