2024-04-08 00:31:15 +03:00
|
|
|
from fastapi import APIRouter, Depends
|
2024-03-31 04:18:41 +03:00
|
|
|
|
2024-04-01 12:19:10 +03:00
|
|
|
from api.application.contracts.user import UserResponse
|
2024-04-08 00:31:15 +03:00
|
|
|
from api.presentation.auth.fasapi_auth import auth_required
|
2024-03-31 01:36:57 +03:00
|
|
|
|
|
|
|
user_router = APIRouter(prefix="/users", tags=["Users"])
|
|
|
|
|
|
|
|
|
2024-04-08 00:31:15 +03:00
|
|
|
@user_router.get(
|
|
|
|
"/",
|
|
|
|
response_model=list[UserResponse],
|
|
|
|
dependencies=[Depends(auth_required)],
|
|
|
|
)
|
2024-03-31 01:36:57 +03:00
|
|
|
async def get_all_users() -> list[UserResponse]:
|
|
|
|
return []
|