|
|
|
|
@ -84,6 +84,11 @@ def callback(filepath):
@@ -84,6 +84,11 @@ def callback(filepath):
|
|
|
|
|
return b.static_file(filepath, os.path.join(CURRENT_DIR, "static")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/templates/<filepath:path>') |
|
|
|
|
def callback(filepath): |
|
|
|
|
return b.static_file(filepath, os.path.join(CURRENT_DIR, "templates")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@b.error |
|
|
|
|
def error403(error): |
|
|
|
|
return "非法访问 " + error |
|
|
|
|
|