Skip to content

Commit

Permalink
fix: remove userId from test route in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofahmy143 committed Sep 19, 2024
1 parent a06ff38 commit 5b91827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5b91827

Please sign in to comment.