From c314fb2c30770c4ece4f1b097bb50be532eb4f84 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 3 Mar 2023 14:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/home.py | 6 ++++++ js/version.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/controllers/home.py b/controllers/home.py index e9d027b..4827e8c 100644 --- a/controllers/home.py +++ b/controllers/home.py @@ -137,6 +137,12 @@ def custom_static_libs(filename): # print(filename) return send_from_directory('libs', filename) +@home.route('/js/') +def custom_static_js(filename): + # 自定义静态目录 {{ url_for('custom_static',filename='help.txt')}} + # print(filename) + return send_from_directory('js', filename) + # @home.route('/txt/') # def get_txt_files(name): # base_path = 'txt' diff --git a/js/version.txt b/js/version.txt index 465effb..f0838b2 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.36beta1 \ No newline at end of file +3.9.36beta2 \ No newline at end of file -- GitLab