app: refonte JWE v2 - SvelteKit 2 + Svelte 5 + MapLibre, 4 modes de jeu, API anti-triche, ecran Cas B 'Pwen blinde', i18n FR/GCF, PWA
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { catalogueExplorer } from '$lib/server/lieux';
|
||||
import type { RequestHandler } from './$types';
|
||||
|
||||
/** GET /api/lieux → catalogue Explorer (coords arrondies à 0.05°, mode sans score). */
|
||||
export const GET: RequestHandler = () => {
|
||||
return json(catalogueExplorer(), {
|
||||
headers: { 'Cache-Control': 'public, max-age=300' }
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user