diff --git a/api/docs.py b/api/docs.py index 8ace5d0..2f6dd21 100644 --- a/api/docs.py +++ b/api/docs.py @@ -4,11 +4,4 @@ docs_api = Blueprint('/api/docs', __name__) @docs_api.get("/") def home(): - return """ -

其实我最开始是想用fastapi的.....

..... -
-
- 查询日志 -
- https://ww3.tw/api/s/get/logs/ - """ \ No newline at end of file + return "123" \ No newline at end of file diff --git a/blueprint/blog_views.py b/blueprint/blog_views.py index 400ce44..d41e8a1 100755 --- a/blueprint/blog_views.py +++ b/blueprint/blog_views.py @@ -197,4 +197,9 @@ def paint(): @blog_bp.route('/paint/upload/', methods=['POST',]) def paint_upload(): if request.method == "POST": - return "POST" \ No newline at end of file + return "POST" + +@blog_bp.route('/new_page/') +@blog_bp.route('/new_page//') +def new_page(page_name=None): + return send_from_directory(os.path.join(current_app.static_folder, 'new_page'), f'{page_name}.html') diff --git a/static/new_page/home.html b/static/new_page/home.html new file mode 100644 index 0000000..497db5c --- /dev/null +++ b/static/new_page/home.html @@ -0,0 +1,33 @@ + + + + + + Document + + + + + + + \ No newline at end of file diff --git a/templates/blog/posts.html b/templates/blog/posts.html index 14af4f0..eb06da2 100755 --- a/templates/blog/posts.html +++ b/templates/blog/posts.html @@ -20,6 +20,8 @@


+ 最后修改时间: 【{{ posts['update_time'].replace('.', '-') }}】 +

留言区: