diff --git a/src/services/attachment-service.ts b/src/services/attachment-service.ts deleted file mode 100644 index a4f086eee..000000000 --- a/src/services/attachment-service.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AxiosResponse } from 'axios' -import { URLs } from '~/constants/request' -import { axiosClient } from '~/plugins/axiosClient' -import { GetAttachmentsParams } from '~/types' - -export const attachmentService = { - getAttachments: async ( - params: GetAttachmentsParams - ): Promise => - await axiosClient.get(URLs.resources.attachments.get, { params }), - - createAttachments: (data?: FormData): Promise => { - return axiosClient.post(URLs.attachments.post, data, { - headers: { 'Content-Type': 'multipart/form-data' } - }) - } -}