From 9f662609a3850fa96d74b4712ee280b43823e09e Mon Sep 17 00:00:00 2001 From: QQ Date: Wed, 11 Nov 2026 11:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20lib/routes.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/routes.js b/lib/routes.js index a37dcc4..f41bf22 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -318,7 +318,6 @@ function adminStatus(code) { * `GET /cloud-memory/skills/api` inventory JSON (skills + trash) * `POST /cloud-memory/skills/toggle` { folder, enabled } * `POST /cloud-memory/skills/remove` { folder } - * `POST /cloud-memory/skills/restore` { id } * `POST /cloud-memory/skills/install` { url } */ async function serveSkills(deps, req, res) { @@ -355,8 +354,7 @@ async function serveSkills(deps, req, res) { } const actions = { '/toggle': async (body) => admin.setEnabled(body.folder, body.enabled === true), - '/remove': async (body) => ({ entry: await admin.remove(body.folder) }), - '/restore': async (body) => admin.restore(body.id), + '/remove': async (body) => admin.remove(body.folder), '/install': async (body) => admin.installFromGit(body.url), }; const action = actions[suffix];