MCPcopy Create free account
hub / github.com/codemistic/Web-Development / updatePost

Function updatePost

project_mern_memories/client/src/api/index.js:8–8  ·  view source on GitHub ↗
(id, updatedPost)

Source from the content-addressed store, hash-verified

6export const createPost = (newPost) => axios.post(url, newPost);
7export const likePost = (id) => axios.patch(`${url}/${id}/likePost`);
8export const updatePost = (id, updatedPost) => axios.patch(`${url}/${id}`, updatedPost);
9export const deletePost = (id) => axios.delete(`${url}/${id}`);

Callers

nothing calls this directly

Calls 1

patchMethod · 0.80

Tested by

no test coverage detected