From 19a7de5c9842b33cb867b998c3289b78583d32ea Mon Sep 17 00:00:00 2001 From: gaba Date: Fri, 4 Nov 2016 13:28:40 -0700 Subject: [PATCH] Remove validations for now until we really use them. --- routes/api/comments/index.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/routes/api/comments/index.js b/routes/api/comments/index.js index c1dedcb68..c9a1f0659 100644 --- a/routes/api/comments/index.js +++ b/routes/api/comments/index.js @@ -3,15 +3,6 @@ const Comment = require('../../../models/comment'); const router = express.Router(); -//============================================================================== -// Validations on parameters -//============================================================================== - -router.param('comment_id', function(res, req, next, comment_id) { - req.comment_id = comment_id; - next(); -}); - //============================================================================== // Routes //==============================================================================