添加获取第三方工具api

This commit is contained in:
fanbook-wangdage
2026-01-13 15:47:40 +08:00
parent a4d95e4f90
commit 74eea3a4f1

View File

@@ -67,3 +67,20 @@ def mgnt_am_i_banned():
"message": "OK", "message": "OK",
"data": {} "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
})