X-Git-Url: http://git.squeep.com/?p=squeep-api-dingus;a=blobdiff_plain;f=lib%2Fdingus.js;fp=lib%2Fdingus.js;h=0f2af748eca503201a9c2e08be97e1bae31462ba;hp=484debced43f0732a71ca0967d964b6475256a29;hb=6207a1ec646ffe93d8dabc4c74d330348aa61a49;hpb=91ca5d0b0e93afeb5c68a48fef461bbcc095fcbe diff --git a/lib/dingus.js b/lib/dingus.js index 484debc..0f2af74 100644 --- a/lib/dingus.js +++ b/lib/dingus.js @@ -22,7 +22,7 @@ const Template = require('./template'); const _fileScope = common.fileScope(__filename); const defaultOptions = { - ignoreTrailingSlash: false, + ignoreTrailingSlash: true, proxyPrefix: '', strictAccept: true, selfBaseUrl: '', @@ -36,7 +36,7 @@ class Dingus { /** * @param {Object} logger object which implements logging methods * @param {Object} options - * @param {Boolean} options.ignoreTrailingSlash + * @param {Boolean} options.ignoreTrailingSlash requests for '/foo/' will match a '/foo' route * @param {string} options.proxyPrefix leading part of url path to strip * @param {Boolean} options.strictAccept whether to error on unsupported Accept type * @param {string} options.selfBaseUrl for constructing links