Skip to content

Commit

Permalink
feat: 팀 이미지 삭제 api 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori committed Jan 12, 2025
1 parent 4f73200 commit fa5c0cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/api/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ const patchEditTeamImage = (token: string, teamId: number, file: FormData) =>
},
});

const deleteTeamImage = (token: string, teamId: number) =>
teamFetcher(`/teams/${teamId}/image`, {
method: 'DELETE',
headers: {
Authorization: `Bearer ${token}`,
},
});

const deleteTeam = (token: string, teamId: number) =>
teamFetcher(`/teams/${teamId}`, {
method: 'DELETE',
Expand Down Expand Up @@ -109,6 +117,7 @@ export {
useGetTeamInfoQuery,
putEditTeam,
patchEditTeamImage,
deleteTeamImage,
deleteTeam,
postInviteTeam,
postJoinTeam,
Expand Down

0 comments on commit fa5c0cc

Please sign in to comment.