mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Update more stuff
This commit is contained in:
parent
faec651630
commit
c98baf473a
1 changed files with 18 additions and 3 deletions
21
webserver.py
21
webserver.py
|
@ -21,20 +21,35 @@ telegram_bot = telegram.Bot(config["Telegram"]["bot_token"])
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(400)
|
@app.errorhandler(400)
|
||||||
def error_400():
|
def error_400(_=None):
|
||||||
return render_template("errors/400.html", config=config)
|
return render_template("errors/400.html", config=config)
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/400")
|
||||||
|
def page_400():
|
||||||
|
return error_400()
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(403)
|
@app.errorhandler(403)
|
||||||
def error_400():
|
def error_403(_=None):
|
||||||
return render_template("errors/403.html", config=config)
|
return render_template("errors/403.html", config=config)
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/403")
|
||||||
|
def page_403():
|
||||||
|
return error_403()
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
def error_400():
|
def error_500(_=None):
|
||||||
return render_template("errors/500.html", config=config)
|
return render_template("errors/500.html", config=config)
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/500")
|
||||||
|
def page_500():
|
||||||
|
return error_500()
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def page_main():
|
def page_main():
|
||||||
if fl_session.get("user_id"):
|
if fl_session.get("user_id"):
|
||||||
|
|
Loading…
Reference in a new issue