import { json } from '@sveltejs/kit'; import { listDistinctGames, listMapsByGame } from '$lib/server/fleet/scripts.js'; // Powers the script-upload scope dropdowns. Options are always live from the // fleet — no caching. This is a cheap two-query call and the servers list // changes infrequently. export async function GET() { return json({ games: listDistinctGames(), mapsByGame: listMapsByGame() }); }