10 lines
286 B
Python
10 lines
286 B
Python
|
|
from fastapi import Depends
|
||
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
||
|
|
|
||
|
|
from app.core.db import get_async_db
|
||
|
|
from app.features.story.service import StoryService
|
||
|
|
|
||
|
|
|
||
|
|
async def get_story_service(db: AsyncSession = Depends(get_async_db)) -> StoryService:
|
||
|
|
return StoryService(db=db)
|