This commit is contained in:
2025-12-27 02:05:19 +01:00
parent 0d7e7ce90c
commit ee29c6d9cb
3 changed files with 34 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { NextRequest, NextResponse } from "next/server";
import { version } from "../../../package.json";
import { read } from "./file";
import { randomUUID } from "crypto";
const TEMPLATE = { node_id: randomUUID() };
export async function GET(req: NextRequest): Promise<NextResponse> {
const { node_id } = await read(TEMPLATE, "data", "node.json");
return NextResponse.json({ app: "dockship", version, node_id });
}