From 69d8f6cbcb4133cbdbdc55fe8982403238e93dc5 Mon Sep 17 00:00:00 2001 From: ISHIMWE Ami Paradis <141851169+amiparadis250@users.noreply.github.com> Date: Mon, 11 Mar 2024 08:31:10 +0200 Subject: [PATCH] comments Auth removed --- .github/workflows/codecov.yml | 2 -- src/routes/commentRoutes.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml deleted file mode 100644 index 543a1f8..0000000 --- a/.github/workflows/codecov.yml +++ /dev/null @@ -1,2 +0,0 @@ -codecov: - token: 043b0874-5f39-448e-8832-bf6fb1a9d758 \ No newline at end of file diff --git a/src/routes/commentRoutes.ts b/src/routes/commentRoutes.ts index 09952c5..dcc0571 100644 --- a/src/routes/commentRoutes.ts +++ b/src/routes/commentRoutes.ts @@ -12,7 +12,7 @@ import validateComments from '../validations/commentsvalidation'; const commentRoutes = express.Router(); -commentRoutes.post('/:id/comments', isLogin,validateComments ,addComment); +commentRoutes.post('/:id/comments',validateComments ,addComment); commentRoutes.delete('/:id/comments/:commentId', isLogin, isAdmin, deleteComment); commentRoutes.get('/:id/comments/:commentId', getOneComment); commentRoutes.get('/:id/comments', getAllCommentsForBlog);