Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
taugk committed Dec 17, 2023
1 parent f979492 commit c51aecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/postsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ router.put(
);

//Delete Routes
router.delete("/deletePost/:id", async (req, res) => {
router.delete("/delete/:id", async (req, res) => {
try {
const tokenDecode = req.authData;
const deletedPost = await Post.destroy({
Expand Down

0 comments on commit c51aecd

Please sign in to comment.