mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
Remove validations for now until we really use them.
This commit is contained in:
@@ -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
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user