diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/apiv1.py | 2 | ||||
| -rw-r--r-- | apps/fx.py | 19 | ||||
| -rw-r--r-- | apps/map.py | 8 |
3 files changed, 12 insertions, 17 deletions
diff --git a/apps/apiv1.py b/apps/apiv1.py index 05d3435..f0fd426 100644 --- a/apps/apiv1.py +++ b/apps/apiv1.py @@ -2,6 +2,7 @@ from apiflask import APIBlueprint, Schema from apiflask.fields import Integer, String, Field from .data import bp as databp +from .fx import bp as fxbp from .stats import bp as statsbp from .sysinfo import bp as sysbp @@ -9,6 +10,7 @@ bp = APIBlueprint('apiv1', __name__, url_prefix="/api") bp.register_blueprint(statsbp) bp.register_blueprint(databp) bp.register_blueprint(sysbp) +bp.register_blueprint(fxbp) class Response(Schema): @@ -1,23 +1,24 @@ # 风险评估接口 +from apiflask import APIBlueprint - -# 高风险节点信息 - +bp = APIBlueprint('fx', __name__, url_prefix='/fx') - -# 高风险节点邻居(输入高风险节点ID) +# 高风险节点信息 [email protected]("/fxnode") +def get_fxnodes(): + pass +# 高风险节点邻居(输入高风险节点地址) [email protected]("/fxnode/<string:id>") +def get_fxnode_nei(): + pass # IP关联信息 - # AS关联 - - # ISP关联 - diff --git a/apps/map.py b/apps/map.py deleted file mode 100644 index 78bb8a2..0000000 --- a/apps/map.py +++ /dev/null @@ -1,8 +0,0 @@ -from apiflask import APIFlask,APIBlueprint -from flask import render_template - -bp=APIBlueprint("map",__name__,url_prefix="/map") - [email protected]("/") -def showmap(): - return render_template("/index.html")
\ No newline at end of file |
