Skip to content
Snippets Groups Projects
Commit 4563eb1b authored by Guz, Rafal P (UG - Comp Sci & Elec Eng)'s avatar Guz, Rafal P (UG - Comp Sci & Elec Eng)
Browse files

Created all comment routes that will be usable

parent 3a24adb3
No related branches found
No related tags found
2 merge requests!8CI/CD,!4Comments service
import express from 'express'; import express from 'express';
import { getComments, getPostComments, deletePostComments, createComment, getCommentById, deleteCommentById } from '../controllers/comments.js';
const router = express.Router(); const router = express.Router();
router.get("/", getComments);
router.get("/post/:postId", getPostComments);
router.delete("/post/:postId", deletePostComments);
router.post("/", createComment);
router.get("/:id", getCommentById);
router.delete("/:id", deleteCommentById);
export default router; export default router;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment