13 lines
381 B
Python
13 lines
381 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from fastapi import Depends
|
||
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
||
|
|
|
||
|
|
from core.db import get_db
|
||
|
|
from v1.points.repository import PointsRepository
|
||
|
|
from v1.points.service import PointsService
|
||
|
|
|
||
|
|
|
||
|
|
def get_points_service(session: AsyncSession = Depends(get_db)) -> PointsService:
|
||
|
|
return PointsService(repository=PointsRepository(session))
|