diff --git a/src/api/post/index.ts b/src/api/post/index.ts index 24e76e04..2c613d80 100644 --- a/src/api/post/index.ts +++ b/src/api/post/index.ts @@ -23,10 +23,9 @@ export const createPost = async (formData: FormCreateType) => { }; export const editPost = async (postId: string, formData: FormEditType) => { - const { data } = await api.put>>( - `/post/v1/${postId}`, - formData - ); + type editPostType = + paths['/post/v2/{postId}']['put']['responses']['200']['content']['application/json;charset=UTF-8']; + const { data } = await api.put(`/post/v2/${postId}`, formData); return data; };