feat(admin): plan statistics + node restart/close-ae actions
Build backend images / build content-svc (push) Failing after 1m22s
Build backend images / build file-svc (push) Failing after 3m8s
Build backend images / build gateway (push) Failing after 53s
Build backend images / build identity-svc (push) Failing after 57s
Build backend images / build notification-svc (push) Failing after 1m25s
Build backend images / build render-svc (push) Failing after 2m5s
Build backend images / build studio-svc (push) Failing after 3m59s
Build backend images / build content-svc (push) Failing after 1m22s
Build backend images / build file-svc (push) Failing after 3m8s
Build backend images / build gateway (push) Failing after 53s
Build backend images / build identity-svc (push) Failing after 57s
Build backend images / build notification-svc (push) Failing after 1m25s
Build backend images / build render-svc (push) Failing after 2m5s
Build backend images / build studio-svc (push) Failing after 3m59s
Final legacy-admin items: - identity GET /v1/admin/plan-statistics (active/total users + revenue per plan from user_plans); surfaced as a breakdown table in /admin/stats - NodesTable: wire Restart + Close-AE actions (backend already supported them) via new proxy routes; was only drain/release before Full DivineGateWeb legacy-admin parity achieved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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}/close-ae`);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
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`);
|
||||
}
|
||||
Reference in New Issue
Block a user