const _fileScope = common.fileScope(__filename);
const defaultOptions = {
- ignoreTrailingSlash: false,
+ ignoreTrailingSlash: true,
proxyPrefix: '',
strictAccept: true,
selfBaseUrl: '',
/**
* @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