var express = require('express'),
    router = express.Router(),
    controller = require('./controller'),
    auth = require('../user/auth').auth();

router.param('folder', controller.params);

router.route('/')
  .get(auth, controller.get)
  .post(auth, controller.post);

router.route('/:folder')
  .get(auth, controller.getOne)
  .put(auth, controller.put)
  .delete(auth, controller.delete);

router.use('/:folder/bookmarks', require('../bookmark/routes'));

module.exports = router;
@@ -158,22 +158,19 @@
 .param('
-folder
+tag
 ', contr
@@ -281,22 +281,19 @@
 oute('/:
-folder
+tag
 ')%0A  .ge
@@ -348,16 +348,16 @@
 er.put)%0A
+
   .delet
@@ -389,74 +389,8 @@
 );%0A%0A
-router.use('/:folder/bookmarks', require('../bookmark/routes'));%0A%0A
 modu

refactor routes by removing nested router