From 24685df96c2c78db4e44a5540ac5f5790d230bd8 Mon Sep 17 00:00:00 2001 From: luoning Date: Fri, 2 Feb 2018 21:02:15 +0800 Subject: [PATCH] =?UTF-8?q?[u]=20=E5=A2=9E=E5=8A=A0templates=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.py b/src/main.py index 213b53e..9580e46 100644 --- a/src/main.py +++ b/src/main.py @@ -84,6 +84,11 @@ def callback(filepath): return b.static_file(filepath, os.path.join(CURRENT_DIR, "static")) +@app.route('/templates/') +def callback(filepath): + return b.static_file(filepath, os.path.join(CURRENT_DIR, "templates")) + + @b.error def error403(error): return "非法访问 " + error