增加文章最后修改日期,并且准备转向前端请求,并非后端模板的想法

This commit is contained in:
2026-04-11 02:03:21 +08:00
parent 98314cbfe3
commit abdf1b4258
4 changed files with 42 additions and 9 deletions

View File

@@ -197,4 +197,9 @@ def paint():
@blog_bp.route('/paint/upload/', methods=['POST',])
def paint_upload():
if request.method == "POST":
return "POST"
return "POST"
@blog_bp.route('/new_page/')
@blog_bp.route('/new_page/<page_name>/')
def new_page(page_name=None):
return send_from_directory(os.path.join(current_app.static_folder, 'new_page'), f'{page_name}.html')