fixed user route registration
This commit is contained in:
@@ -12,15 +12,6 @@ router = APIRouter(
|
||||
)
|
||||
|
||||
|
||||
"""
|
||||
Note: this router is not currently registered in the main FastAPI app.
|
||||
This is to facilitate not exposing the user routes to the public API,
|
||||
but this may change in a future version.
|
||||
|
||||
The file remains to ease the future addition of user routes.
|
||||
"""
|
||||
|
||||
|
||||
@router.get("/", status_code=status.HTTP_200_OK)
|
||||
async def get_users() -> list[User]:
|
||||
return await controller.get_users()
|
||||
|
||||
Reference in New Issue
Block a user