From 74eea3a4f1880a390e6659171745d79d9b60b19a Mon Sep 17 00:00:00 2001 From: fanbook-wangdage <124357765+fanbook-wangdage@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=B7=A5=E5=85=B7api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/misc.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/routes/misc.py b/routes/misc.py index 1a1ea78..83a6561 100644 --- a/routes/misc.py +++ b/routes/misc.py @@ -66,4 +66,21 @@ def mgnt_am_i_banned(): "retcode": 0, "message": "OK", "data": {} + }) + +# 获取额外的第三方注入工具 +@misc_bp.route('/tools', methods=['GET']) +def get_tools(): + """获取额外的第三方注入工具列表""" + tools = list(client.ht_server.tools.find({})) + + for tool in tools: + tool.pop('_id', None) + + logger.debug(f"Tools: {tools}") + + return jsonify({ + "code": 0, + "message": "OK", + "data": tools }) \ No newline at end of file