@thzero/library_server_fastify 0.15.38 → 0.15.42

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/boot/index.js CHANGED
@@ -35,6 +35,7 @@ class FastifyBootMain extends BootMain {
35
35
 
36
36
  let http2 = this._appConfig.get('http2', false);
37
37
  http2 = http2 === 'true' ? true : false;
38
+ this.loggerServiceI.info2(`config.http2.override: ${http2}`);
38
39
 
39
40
  // const fastify = Fastify({ serverFactory, logger: true });
40
41
  const fastify = Fastify({
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server_fastify",
3
3
  "type": "module",
4
- "version": "0.15.38",
4
+ "version": "0.15.42",
5
5
  "version_major": 0,
6
6
  "version_minor": 15,
7
- "version_patch": 38,
8
- "version_date": "04/25/2022",
7
+ "version_patch": 42,
8
+ "version_date": "05/28/2022",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
10
10
  "author": "thZero",
11
11
  "license": "MIT",
@@ -34,7 +34,7 @@ class AdminBaseRoute extends BaseRoute {
34
34
 
35
35
  _initializeRoutesCreate(router) {
36
36
  const self = this;
37
- router.post(this._join('/'),
37
+ router.post(this._join(''),
38
38
  // authentication(true),
39
39
  // authorization([ `${self._options.role}.create` ]),
40
40
  {
package/routes/home.js CHANGED
@@ -12,7 +12,7 @@ class HomeRoute extends BaseRoute {
12
12
  _initializeRoutes(router) {
13
13
  // eslint-disable-next-linethis._prefix
14
14
  router.get(this._join('/'), (request, reply) => {
15
- reply.status(401).send();
15
+ reply.status(494).send();
16
16
  });
17
17
  }
18
18
 
package/routes/plans.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import LibraryConstants from '@thzero/library_server/constants';
2
2
 
3
- import Utility from '@thzero/library_common/utility';
4
-
5
3
  import BaseRoute from './index';
6
4
 
7
5
  class PlansRoute extends BaseRoute {
@@ -22,7 +20,7 @@ class PlansRoute extends BaseRoute {
22
20
  }
23
21
 
24
22
  _initializeRoutes(router) {
25
- router.get(this._join('/'),
23
+ router.get(this._join(''),
26
24
  // eslint-disable-next-line
27
25
  async (request, reply) => {
28
26
  // const service = this._injector.getService(LibraryConstants.InjectorKeys.SERVICE_PLANS);