/* eslint-disable new-cap */

var express = require('express');
var router = express.Router();

var handlers = require('./handlers');
var entryIdParser = require('./lib/entryIdParser');
var jsonParser = require('body-parser').json();
var commentsRouter = require('./comments/routes');

router.post('/', handlers.create); // uses multer body-parser inside

router.use('/:entryId', entryIdParser);

router.post('/:entryId', handlers.change);  // uses multer body-parser inside
router.delete('/:entryId', jsonParser, handlers.remove);

router.use('/:entryId/comments', commentsRouter);

module.exports = router;

@@ -183,56 +183,8 @@
 ');%0A
-var jsonParser = require('body-parser').json();%0A
 var 
@@ -450,20 +450,8 @@
 Id',
- jsonParser,
  han

Remove unnecessary json parser