Merge branch 'refactor/backend-architecture' into development
This commit is contained in:
13
api/app/features/user/deps.py
Normal file
13
api/app/features/user/deps.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""User feature dependencies: get_user_service."""
|
||||
|
||||
from fastapi import Depends
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.core.db import get_async_db
|
||||
from app.features.user.service import UserService
|
||||
|
||||
|
||||
def get_user_service(
|
||||
db: AsyncSession = Depends(get_async_db),
|
||||
) -> UserService:
|
||||
return UserService(db=db)
|
||||
Reference in New Issue
Block a user