feat: remove /error route

This commit is contained in:
Ayo Ayco 2024-05-17 18:12:44 +02:00
parent d0752c8ec7
commit 7926535685

8
web.py
View file

@ -30,16 +30,10 @@ def dist(path):
else:
return send_from_directory('dist', path + '/index.html')
@app.route('/error')
def errorthing():
1/0
return 'hello'
@app.errorhandler(404)
def not_found(e):
return send_from_directory('dist', '404.html'), 404
if __name__ == '__main__':
app.run(host='0.0.0.0')