From 744fccfc5432c3322ee7e63bb66beb8f92764e09 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sun, 7 Jan 2024 16:30:55 +0200 Subject: [PATCH] naming typo fix --- middlewares.py | 0 {middelwares => middlewares}/errorHandlers.py | 0 .../eventMiddelwares.py => middlewares/eventMiddlewares.py | 0 .../userMiddelwares.py => middlewares/userMiddlewares.py | 0 routes/__init__.py | 0 routes/eventRoutes.py | 4 ++-- routes/userRoutes.py | 5 ++--- 7 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 middlewares.py rename {middelwares => middlewares}/errorHandlers.py (100%) rename middelwares/eventMiddelwares.py => middlewares/eventMiddlewares.py (100%) rename middelwares/userMiddelwares.py => middlewares/userMiddlewares.py (100%) delete mode 100644 routes/__init__.py 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__)