diff --git a/middlewares.py b/middlewares.py deleted file mode 100644 index e69de29..0000000 diff --git a/middelwares/errorHandlers.py b/middlewares/errorHandlers.py similarity index 100% rename from middelwares/errorHandlers.py rename to middlewares/errorHandlers.py diff --git a/middelwares/eventMiddelwares.py b/middlewares/eventMiddlewares.py similarity index 100% rename from middelwares/eventMiddelwares.py rename to middlewares/eventMiddlewares.py diff --git a/middelwares/userMiddelwares.py b/middlewares/userMiddlewares.py similarity index 100% rename from middelwares/userMiddelwares.py rename to middlewares/userMiddlewares.py diff --git a/routes/__init__.py b/routes/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/routes/eventRoutes.py b/routes/eventRoutes.py index b7cccc6..80c9e98 100644 --- a/routes/eventRoutes.py +++ b/routes/eventRoutes.py @@ -1,7 +1,7 @@ from flask import Blueprint, jsonify, request, g from services.EventService import EventService -from middelwares.userMiddelwares import authenticate_user -from middelwares.eventMiddelwares import validate_event_post_request +from middlewares.userMiddlewares import authenticate_user +from middlewares.eventMiddlewares import validate_event_post_request eventRoutes = Blueprint('eventRoutes', __name__) diff --git a/routes/userRoutes.py b/routes/userRoutes.py index 1332ba4..6a8d912 100644 --- a/routes/userRoutes.py +++ b/routes/userRoutes.py @@ -1,8 +1,7 @@ from flask import Blueprint, jsonify, request from services.UserService import UserService -from flask_jwt_extended import JWTManager, jwt_required, create_access_token, get_jwt_identity -from middelwares.userMiddelwares import validate_user_post_request, validate_user_login_request -from middelwares.eventMiddelwares import validate_event_post_request +from flask_jwt_extended import JWTManager, jwt_required, create_access_token +from middlewares.userMiddlewares import validate_user_post_request, validate_user_login_request userRoutes = Blueprint('userRoutes', __name__)