@ladjs/api 14.1.12 → 14.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -44,6 +44,7 @@ class API {
44
44
  // eslint-disable-next-line complexity
45
45
  constructor(config, Users) {
46
46
  this.config = {
47
+ removeTrailingSlashes: true,
47
48
  ...sharedConfig('API'),
48
49
  ...config
49
50
  };
@@ -120,7 +121,7 @@ class API {
120
121
  if (this.config.auth) app.use(auth(this.config.auth));
121
122
 
122
123
  // Remove trailing slashes
123
- app.use(removeTrailingSlashes);
124
+ if (this.config.removeTrailingSlashes) app.use(removeTrailingSlashes);
124
125
 
125
126
  // I18n
126
127
  if (this.config.i18n) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/api",
3
3
  "description": "API server for Lad",
4
- "version": "14.1.12",
4
+ "version": "14.1.14",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/api/issues",
@@ -16,14 +16,14 @@
16
16
  "@ladjs/koa-simple-ratelimit": "^4.1.1",
17
17
  "@ladjs/passport": "^5.1.1",
18
18
  "@ladjs/redis": "^1.1.1",
19
- "@ladjs/shared-config": "^9.1.3",
19
+ "@ladjs/shared-config": "^9.1.4",
20
20
  "@ladjs/store-ip-address": "^0.0.7",
21
21
  "axe": "^12.2.3",
22
22
  "boolean": "^3.2.0",
23
23
  "cabin": "^13.2.5",
24
24
  "express-request-id": "1.4.1",
25
25
  "kcors": "^2.2.2",
26
- "koa": "^2.14.2",
26
+ "koa": "^2.15.0",
27
27
  "koa-404-handler": "^0.1.0",
28
28
  "koa-basic-auth": "^4.0.0",
29
29
  "koa-better-error-handler": "^11.0.4",