ai generated solutions to our ai generated problems

This commit is contained in:
2026-06-19 23:33:01 +01:00
parent 6745a2ff81
commit 9263d6f8eb
4 changed files with 278 additions and 1 deletions
+15
View File
@@ -1572,6 +1572,15 @@ function allowedApiTarget(req) {
return url
}
if (pathname === '/api/tss/leaderboard/players') {
const keys = [...params.keys()]
const limit = Number(params.get('limit') || 100)
if (keys.some((key) => key !== 'limit') || !Number.isInteger(limit) || limit < 1 || limit > 100) {
return null
}
return url
}
if (pathname === '/api/tss/games/recent') {
const keys = [...params.keys()]
const limit = Number(params.get('limit') || 50)
@@ -1805,6 +1814,12 @@ function routeSeo(pathname) {
robots: 'index, follow',
path: '/teams',
},
'/players': {
title: "TSS Player Leaderboard | Toothless' TSS Bot",
description: 'Browse the TSS player leaderboard, compare War Thunder player score, kills, win rate, KDR, and battle activity.',
robots: 'index, follow',
path: '/players',
},
'/battle-logs': {
title: "TSS Battle Logs | Toothless' TSS Bot",
description: 'Read recent TSS battle logs with team names, map history, player counts, battle times, and War Thunder match context.',