Skip to content

Commit 15d879b

Browse files
committed
✨ feat(#170): 이미지 업로드 API에 비인증 요청 허용 처리
1 parent ef40d78 commit 15d879b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/api/image/image.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { authClient } from "../client";
1+
import client from '../client';
22

33
export const postImage = async (imageFile: File) => {
44
const formData = new FormData();
5-
formData.append("image", imageFile);
5+
formData.append('image', imageFile);
66

7-
return await authClient.post("/api/v1/images", formData, {
7+
return await client.post('/api/v1/images', formData, {
88
headers: {
9-
"Content-Type": "multipart/form-data",
10-
},
9+
'Content-Type': 'multipart/form-data'
10+
}
1111
});
1212
};

0 commit comments

Comments
 (0)