From d35904ecd2fdde2e0c105b75c7e9b5a258dd9007 Mon Sep 17 00:00:00 2001 From: Ikmal Syifai Date: Thu, 19 Oct 2017 14:35:39 +0700 Subject: [PATCH] Router options will default to true mergeParams --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5c85832..bd19b3b 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,7 @@ module.exports = function (merapi) { let port = cfg.port || 8080; let host = cfg.host || "localhost"; - let routerOptions = cfg.router || {}; + let routerOptions = Object.assign({}, { mergeParams: true }, cfg.router); let bodyParserOptions = cfg.bodyParser || {}; let middleware = cfg.middleware || []; let routes = cfg.routes || {};