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