projects
/
squeep-api-dingus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91ca5d0
)
change default of ignoreTrailingSlash to true
author
Justin Wind
<justin.wind+git@gmail.com>
Sat, 26 Aug 2023 19:52:02 +0000
(12:52 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Sat, 26 Aug 2023 19:52:02 +0000
(12:52 -0700)
lib/dingus.js
patch
|
blob
|
history
diff --git
a/lib/dingus.js
b/lib/dingus.js
index 484debced43f0732a71ca0967d964b6475256a29..0f2af748eca503201a9c2e08be97e1bae31462ba 100644
(file)
--- a/
lib/dingus.js
+++ b/
lib/dingus.js
@@
-22,7
+22,7
@@
const Template = require('./template');
const _fileScope = common.fileScope(__filename);
const defaultOptions = {
const _fileScope = common.fileScope(__filename);
const defaultOptions = {
- ignoreTrailingSlash:
fals
e,
+ ignoreTrailingSlash:
tru
e,
proxyPrefix: '',
strictAccept: true,
selfBaseUrl: '',
proxyPrefix: '',
strictAccept: true,
selfBaseUrl: '',
@@
-36,7
+36,7
@@
class Dingus {
/**
* @param {Object} logger object which implements logging methods
* @param {Object} options
/**
* @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
* @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