(
current_user: User = Security(get_current_active_user, scopes=["items"]),
)
| 169 | |
| 170 | @app.get("/users/me/items/") |
| 171 | async def read_own_items( |
| 172 | current_user: User = Security(get_current_active_user, scopes=["items"]), |
| 173 | ): |
| 174 | return [{"item_id": "Foo", "owner": current_user.username}] |
| 175 | |
| 176 | |
| 177 | @app.get("/status/") |
nothing calls this directly
no test coverage detected
searching dependent graphs…