ai generated solutions to our ai generated problems
This commit is contained in:
+15
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user