Skip to content

Commit 596cec6

Browse files
committed
HOTFIX: 물품 등록 안되던 오류 수정
1 parent dcb0c3c commit 596cec6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/items.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export const getItems = async (searchQuery?: string, page?: number) => {
1111
};
1212

1313
export const addItems = async (data: FormData) => {
14-
const response = await PrivateAxiosInstance.post('/admin/items', data);
14+
const response = await PrivateAxiosInstance.post('/admin/items', data, {
15+
headers: {
16+
'Content-Type': 'multipart/form-data',
17+
},
18+
});
1519
return response.data;
1620
};
1721

0 commit comments

Comments
 (0)