diff --git a/test/main.py b/test/main.py index c3ffecb..01d1db9 100644 --- a/test/main.py +++ b/test/main.py @@ -9,8 +9,8 @@ app = FastAPI() -@app.get("/users/{user_id}/items") -async def get_users(user_id, db: AsyncSession = Depends(get_async_session)): +@app.get("/users/items") +async def get_users(db: AsyncSession = Depends(get_async_session)): stmt = select(Item) result = await db.execute(stmt) items = result.scalars().all()