Skip to content

Commit

Permalink
Merge pull request #4 from kata-ai/feature/default-merge-params
Browse files Browse the repository at this point in the history
Router options will default to true mergeParams
  • Loading branch information
rizqme authored Oct 19, 2017
2 parents ebf5d23 + d35904e commit 2112573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down

0 comments on commit 2112573

Please sign in to comment.