Skip to content

Commit 0cedb2e

Browse files
committed
refactor: 대본 변경 API id 전달 방식 path → query param으로 변경
1 parent 7bd8a9c commit 0cedb2e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/api/user/profile/work/changeScriptApi.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ export const PostChangeScript = async (
3434
const formData = new FormData();
3535
formData.append("script", scriptFile);
3636

37-
const response = await api.post<boolean>(`/profile/work/changeScript/${id}`, formData, {
38-
withCredentials: true,
39-
});
37+
const response = await api.post<boolean>(
38+
`/profile/work/changeScript`,
39+
formData,
40+
{
41+
params: { id },
42+
withCredentials: true,
43+
}
44+
);
4045

4146
return response.data;
4247
} catch (error) {

0 commit comments

Comments
 (0)