Node data

This commit is contained in:
2025-12-27 14:58:50 +01:00
parent e8dc4a4590
commit bd37c8dc44
5 changed files with 56 additions and 27 deletions
+7 -2
View File
@@ -1,6 +1,8 @@
import { NextRequest, NextResponse } from "next/server";
import testAuth from "../auth";
import { StatusCodes } from "http-status-codes";
import { getDocker } from "@/core/docker";
import { Docker } from "@/lib/types";
export async function GET(req: NextRequest): Promise<NextResponse> {
const auth = await testAuth(req);
@@ -12,8 +14,11 @@ export async function GET(req: NextRequest): Promise<NextResponse> {
);
}
const docker = await getDocker();
return NextResponse.json({
message: "ok",
containers: [],
});
version: docker.version.Version,
containers: docker.containers,
} as Docker);
}