FEAT: Added errorhandling for status codes
This commit is contained in:
@@ -2,6 +2,7 @@ from flask import Flask
|
||||
from flask_session import Session
|
||||
from flask_cors import CORS
|
||||
from blueprints.utils import logged_in_user
|
||||
from blueprints.errorhandlers import register_error_handlers
|
||||
# from flask_wtf.csrf import CSRFProtect, generate_csrf
|
||||
|
||||
from blueprints.authentication import auth_bp
|
||||
@@ -31,6 +32,9 @@ def create_app():
|
||||
Session(app)
|
||||
app.before_request(logged_in_user)
|
||||
|
||||
# adds in error handlers
|
||||
register_error_handlers(app)
|
||||
|
||||
# @app.route('/csrf-token')
|
||||
# def get_csrf_token():
|
||||
# return jsonify({'csrf_token': generate_csrf()}), 200
|
||||
|
||||
Reference in New Issue
Block a user