From cfb2a4cce12efb59fe31c7bedf7be63cb571c2bb Mon Sep 17 00:00:00 2001 From: Lee jin <83453646+j-nary@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:01:52 +0900 Subject: [PATCH] refactor: PUT post/v2 --- src/api/post/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; };