mirror of
https://github.com/wangdage12/Snap.Server.git
synced 2026-02-17 08:52:10 +08:00
添加获取第三方工具api
This commit is contained in:
@@ -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
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user