From 2f8b2d9d73f5431dab26bc9ed3639d6c62e26723 Mon Sep 17 00:00:00 2001 From: Mostafa Kamal Date: Sun, 26 May 2024 02:03:35 +0600 Subject: [PATCH] users --- fastapi_project/api/v1/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_project/api/v1/user.py b/fastapi_project/api/v1/user.py index f3402b7..a17f616 100755 --- a/fastapi_project/api/v1/user.py +++ b/fastapi_project/api/v1/user.py @@ -18,7 +18,7 @@ async def create_order(request: Request, the_data: UserCreateSchema): output = user_service.s_create_user(data) return JSONResponse(content=output, status_code=status.HTTP_200_OK) -@router.get("/users/all") +@router.get("/users") async def get_users(request: Request): data = user_service.s_get_users(request) return JSONResponse(content=jsonable_encoder(data), status_code=status.HTTP_200_OK)