Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions flask-backend/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def load_user(user_id):
def unauthorized_handler():
return 'You are not authorized to use this route. Please Logged In.', 401

@app.errorhandler(404)
def page_not_found(e):
return str(e), 404

from .userAuthentication.auth import auth as auth_blueprint
app.register_blueprint(auth_blueprint)

Expand Down