@apolitical/server 2.0.1-beta.2 → 2.0.1-beta.3

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.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [2.0.1] - 2022-01-21
9
9
  ### Added
10
10
  - Correlation when logging from error middleware
11
+ - Dynamically update documentation to set the host
11
12
 
12
13
  ## [2.0.0] - 2022-01-20
13
14
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/server",
3
- "version": "2.0.1-beta.2",
3
+ "version": "2.0.1-beta.3",
4
4
  "description": "Node.js module to encapsulate Apolitical's express server setup",
5
5
  "author": "Apolitical Group Limited <engineering@apolitical.co>",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@ module.exports = ({
23
23
  // Redirection to documentation
24
24
  app.use(`${DOCUMENTATION}index.html`, (req, res) => res.redirect(MOVED_PERMANENTLY, DOCUMENTATION));
25
25
  // Documentation express setup
26
- app.use(DOCUMENTATION, authorisationMiddleware(), hostMiddleware, serve, setup(swaggerDocument));
26
+ app.use(DOCUMENTATION, authorisationMiddleware(), hostMiddleware, serve, setup());
27
27
  }
28
28
  childLogger.debug('Finished');
29
29
  };