@ossy/app 0.5.1 → 0.5.2

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.
@@ -8,7 +8,7 @@ export function ProxyInternal() {
8
8
  const domain = process.env.OSSY_API_URL || 'https://api.ossy.se'
9
9
  const url = `${domain}${req.path}`
10
10
  const headers = JSON.parse(JSON.stringify(req.headers)) // Clone headers
11
- const workspaceId = headers.workspaceId || config.workspaceId
11
+ const workspaceId = headers.workspaceId
12
12
 
13
13
  if (workspaceId) {
14
14
  headers['workspaceid'] = workspaceId
package/cli/server.js CHANGED
@@ -23,10 +23,10 @@ if (Middleware !== undefined) {
23
23
 
24
24
  const middleware = [
25
25
  morgan('tiny'),
26
- express.static(ROOT_PATH),
27
26
  express.json({ strict: false }),
27
+ ...(Middleware || []),
28
+ express.static(ROOT_PATH),
28
29
  ProxyInternal(),
29
- ...(Middleware || [])
30
30
  ]
31
31
 
32
32
  app.use(middleware)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -57,5 +57,5 @@
57
57
  "/cli",
58
58
  "README.md"
59
59
  ],
60
- "gitHead": "71269efebe05376c2ead8a2a81a94ddf098996c6"
60
+ "gitHead": "0462d4b0deabb9f16ac5637cc12a611304356b9b"
61
61
  }