config di lifespan

This commit is contained in:
2024-03-31 21:07:59 +03:00
parent 327ab86d1f
commit c809f14fdc
12 changed files with 115 additions and 9 deletions

View File

@@ -14,8 +14,8 @@ async def get_all_users() -> list[UserResponse]:
return []
@user_router.post("/")
async def create_task(
@user_router.post("/", status_code=201)
async def create_user(
request: UserCreateRequest,
usecase: Annotated[CreateUser, Depends(Stub(CreateUser))],
) -> None: