import { type NextRequest } from "next/server";
import { adminProxy } from "@/app/api/admin/_adminProxy";

export const runtime = "nodejs";
interface Ctx { params: { nodeId: string } }

export async function POST(req: NextRequest, { params }: Ctx) {
  return adminProxy(req, `/v1/nodes/${params.nodeId}/restart`);
}
