mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 21:24:34 +08:00
Remove list endpoint and related methods
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Generic, List, Optional, Type
|
||||
from typing import Generic, Optional, Type
|
||||
|
||||
from fastapi.security import OAuth2PasswordRequestForm
|
||||
|
||||
@ -18,10 +18,6 @@ class BaseUserDatabase(Generic[UD]):
|
||||
def __init__(self, user_db_model: Type[UD]):
|
||||
self.user_db_model = user_db_model
|
||||
|
||||
async def list(self) -> List[UD]:
|
||||
"""List all users."""
|
||||
raise NotImplementedError()
|
||||
|
||||
async def get(self, id: str) -> Optional[UD]:
|
||||
"""Get a single user by id."""
|
||||
raise NotImplementedError()
|
||||
|
||||
Reference in New Issue
Block a user