feature: 完成角色授权

This commit is contained in:
zhengxinonly
2023-10-31 20:23:09 +08:00
parent 6a8fb955f5
commit 537e21728b
11 changed files with 1435 additions and 426 deletions
+11 -11
View File
@@ -17,16 +17,16 @@ def create_app(config_name="dev"):
register_views(app)
@app.errorhandler(403)
def handle_404(e):
return render_template("error/403.html")
@app.errorhandler(404)
def handle_403(e):
return render_template("error/404.html")
@app.errorhandler(500)
def handle_500(e):
return render_template("error/500.html")
# @app.errorhandler(403)
# def handle_404(e):
# return render_template("error/403.html")
#
# @app.errorhandler(404)
# def handle_403(e):
# return render_template("error/404.html")
#
# @app.errorhandler(500)
# def handle_500(e):
# return render_template("error/500.html")
return app