Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ deletePost
Function
deletePost
project_mern_memories/client/src/api/index.js:9–9 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
7
export
const
likePost = (id) => axios.patch(`${url}/${id}/likePost`);
8
export
const
updatePost = (id, updatedPost) => axios.patch(`${url}/${id}`, updatedPost);
9
export
const
deletePost = (id) => axios.delete(`${url}/${id}`);
Callers
nothing calls this directly
Calls
1
delete
Method · 0.80
Tested by
no test coverage detected