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