Files
edubox/server/app/api/download/route.ts
T
root 2feea2d063 fix(agent): versionnage des fichiers agent pour éviter le cache navigateur
- build.sh génère désormais des fichiers versionnés (edubox-agent-vX.Y.Z)
- dashboard et /api/download pointent vers les fichiers versionnés
- affichage de la version actuelle sur la page de téléchargement
2026-06-12 21:50:14 +00:00

13 lines
318 B
TypeScript

import { NextResponse } from "next/server";
const AGENT_VERSION = "0.2.3";
export async function GET() {
return NextResponse.json({
version: AGENT_VERSION,
windows: `/edubox-agent-v${AGENT_VERSION}.exe`,
linux: `/edubox-agent-v${AGENT_VERSION}`,
mac: `/edubox-agent-v${AGENT_VERSION}-mac`,
});
}