import { Router } from 'express';
import { BookmarkController } from './controller.js';
import routes$1 from './list/routes.js';

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

export { routes as default, routes };
//# sourceMappingURL=routes.js.map
