lib/api/posts.js를 열어서 updatePost 함수를 작성하세요.
lib/api/posts.js
(...) export const updatePost = ({ id, title, body, tags }) => client.patch(`/api/posts/${id}`, { title, body, tags, });
엄선한 추천 도서와 신규 콘텐츠를 이메일로 보내드립니다.새로운 책이 등록될 때마다 소식을 받아보세요.