diff options
| author | 韩丁康 <[email protected]> | 2023-11-17 20:45:25 +0800 |
|---|---|---|
| committer | 韩丁康 <[email protected]> | 2023-11-17 20:45:25 +0800 |
| commit | cf783d1123ed596dbbf4dcce79e2b2fb20cdeefd (patch) | |
| tree | 845ffe977dac12e45f6732ec100e4421eeec35ef | |
| parent | 95fd50eca7b55d69e0c8f0e11dfabe464d11d02b (diff) | |
数据同步
| -rw-r--r-- | app.py | 4 | ||||
| -rw-r--r-- | apps/map.py | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -4,13 +4,15 @@ from flask import request from apps.datacheck import bp as checkbp from apps.delay import bp as delaybp,TestNode from apps.script import bp as scriptbp +from apps.map import bp as mapbp import pandas as pd # 注册蓝图 -app = APIFlask(__name__) +app = APIFlask(__name__,template_folder='./static/templates') app.register_blueprint(checkbp) app.register_blueprint(delaybp) app.register_blueprint(scriptbp) +app.register_blueprint(mapbp) @app.get('/') @app.doc("获取测试页面") diff --git a/apps/map.py b/apps/map.py new file mode 100644 index 0000000..78bb8a2 --- /dev/null +++ b/apps/map.py @@ -0,0 +1,8 @@ +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 |
