2feea2d063
- 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
13 lines
318 B
TypeScript
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`,
|
|
});
|
|
}
|