diff --git a/src/app/api/team.ts b/src/app/api/team.ts index 68a6206..135c081 100644 --- a/src/app/api/team.ts +++ b/src/app/api/team.ts @@ -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', @@ -109,6 +117,7 @@ export { useGetTeamInfoQuery, putEditTeam, patchEditTeamImage, + deleteTeamImage, deleteTeam, postInviteTeam, postJoinTeam,