feat: 이미지 업로드 로직에 기존 이미지 삭제 로직 추가

This commit is contained in:
2025-04-08 14:33:11 +09:00
parent 77539bb785
commit a5652f9f04
2 changed files with 15 additions and 9 deletions
@@ -13,6 +13,10 @@ export class AttachmentApiService implements AttachmentService {
return response.data;
}
public async deleteAttachment(atflId: string): Promise<void> {
await client.delete(`${ENDPOINT.ATTACH_SERVICE.ATTACHMENTS}/${atflId}`);
}
public async getImageUrl(atflId: string): Promise<string> {
if (!atflId) return "";
const response = await fetch(`${ENDPOINT.ATTACH_SERVICE.IMAGES}/${atflId}`);