Files
life-echo/api/app/features/quota/deps.py

14 lines
341 B
Python

"""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)