This commit is contained in:
Jakub Miazek
2022-11-12 18:41:39 +01:00
parent 8d44b4a5eb
commit dbe64008f8
10 changed files with 42 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
from fastapi import APIRouter, Depends, status
from fastapi import APIRouter, Depends
from sqlalchemy.ext.asyncio import AsyncSession
from app.database import get_db
@@ -7,7 +7,9 @@ from app.models.shakespeare import Paragraph
router = APIRouter(prefix="/v1/shakespeare")
@router.get("/",)
@router.get(
"/",
)
async def find_paragraph(
character: str,
db_session: AsyncSession = Depends(get_db),