ai generated solutions to our ai generated problems

This commit is contained in:
Heidi
2026-06-17 23:34:22 +01:00
parent f6afcf599b
commit 08b6d01fc8
4 changed files with 356 additions and 41 deletions
+4
View File
@@ -26,6 +26,10 @@ function isAllowedApiUrl(req) {
return keys.every((key) => key === 'limit') && Number.isInteger(limit) && limit >= 1 && limit <= 100
}
if (/^\/api\/tss\/games\/[A-Za-z0-9_-]{1,96}$/.test(url.pathname)) {
return [...params.keys()].length === 0
}
if (url.pathname === '/api/tss/teams/resolve') {
const keys = [...params.keys()]
const name = params.get('name') || ''