Skip to content

Commit

Permalink
#88 Feat: 팀 완료 API 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
fnzksxl committed Aug 28, 2024
1 parent b8b8988 commit 8616f92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wtnt/user/profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ def get(self, request, *args, **kwargs):

return Response(data, status=status.HTTP_200_OK)

def patch(self, request, *args, **kwargs):
myteam_service = MyTeamManageService(request, **kwargs)
data = myteam_service.finish_project()

return Response(data, status=status.HTTP_202_ACCEPTED)

def delete(self, request, *args, **kwargs):
myteam_service = MyTeamManageService(request, **kwargs)
data = myteam_service.ban_user_from_team()
Expand Down

0 comments on commit 8616f92

Please sign in to comment.