mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 04:44:46 +00:00
18 lines
525 B
TypeScript
18 lines
525 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { handleAdminHttpRpcRequest } from "./src/handler.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "admin-http-rpc",
|
|
name: "Admin HTTP RPC",
|
|
description: "Expose selected Gateway admin RPC methods over HTTP",
|
|
register(api) {
|
|
api.registerHttpRoute({
|
|
path: "/api/v1/admin/rpc",
|
|
auth: "gateway",
|
|
match: "exact",
|
|
gatewayRuntimeScopeSurface: "trusted-operator",
|
|
handler: handleAdminHttpRpcRequest,
|
|
});
|
|
},
|
|
});
|