feat: Add terms and 404 pages
All checks were successful
Build Docker / Build Bot (push) Successful in 20s
Build Docker / Build Master (push) Successful in 25s

This commit is contained in:
2023-11-17 17:01:14 +11:00
parent 0988333f3b
commit 086bab83d3
11 changed files with 232 additions and 29 deletions

View File

@@ -843,6 +843,15 @@ def send_report(path):
return send_from_directory('templates/assets', path)
@app.route('/terms')
def terms():
return render_template('terms.html')
# 404 route
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
# Start the server