From: Justin Wind Date: Sat, 26 Aug 2023 19:52:02 +0000 (-0700) Subject: change default of ignoreTrailingSlash to true X-Git-Tag: v2.0.0^2~3 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6207a1ec646ffe93d8dabc4c74d330348aa61a49;p=squeep-api-dingus change default of ignoreTrailingSlash to true --- 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