Skip to content

Commit

Permalink
Separate dependency injection functions in a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
IbraheemTuffaha committed Aug 31, 2024
1 parent 18348b2 commit 19719b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/v1/dependencies/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__all__ = ["get_user_manager"]

from app.v1.dependencies.user_manager import get_user_manager
File renamed without changes.
3 changes: 2 additions & 1 deletion app/v1/routers/users.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from fastapi import APIRouter, Depends, HTTPException, status

from app.v1.dependencies import get_user_manager
from app.v1.models import User
from app.v1.services import UserManager, get_user_manager
from app.v1.services import UserManager


router = APIRouter()
Expand Down
3 changes: 1 addition & 2 deletions app/v1/services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
__all__ = ["get_user_manager", "UserManager"]
__all__ = ["UserManager"]

from app.v1.services.user.dependency import get_user_manager
from app.v1.services.user.user_manager import UserManager

0 comments on commit 19719b8

Please sign in to comment.