mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 03:04:27 +08:00
Remove list endpoint and related methods
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, cast
|
||||
from typing import Any, Dict, Type, cast
|
||||
|
||||
import jwt
|
||||
from fastapi import Body, Depends, HTTPException
|
||||
@ -185,14 +185,6 @@ def get_user_router(
|
||||
|
||||
return updated_user
|
||||
|
||||
@router.get(
|
||||
"/",
|
||||
response_model=List[user_model], # type: ignore
|
||||
dependencies=[Depends(get_current_superuser)],
|
||||
)
|
||||
async def list_users():
|
||||
return await user_db.list()
|
||||
|
||||
@router.get(
|
||||
"/{id}",
|
||||
response_model=user_model,
|
||||
|
Reference in New Issue
Block a user