'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var express = require('express');
var controller = require('./controller.js');
var routes$1 = require('./list/routes.js');

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    const controller$1 = new controller.BookmarkController(layoutPath, services);
    router.post('/', controller$1.POST);
    router.use(`/list`, routes$1.default({ layoutPath, services }));
    return router;
}

exports.default = routes;
exports.routes = routes;
//# sourceMappingURL=routes.js.map
