@manyos/smileconnect-api 1.42.0 → 1.42.1

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/app.js CHANGED
@@ -229,6 +229,9 @@ app.get('/debug', function (req, res, next) {
229
229
 
230
230
  });*/
231
231
 
232
+ app.use(['/v1/health', '/v1/healthcheck'], function (req, res, next) {
233
+ res.json({status:"ok"})
234
+ })
232
235
 
233
236
  //global authentication
234
237
  app.use(passport.authenticate('jwt', {session: false}), responseHandler.logRequest);
@@ -346,10 +349,6 @@ app.use('/v1/:requestType/:parentId/tasks', function(req, res, next) {
346
349
 
347
350
  app.use(relatedObjectsController.getRelatedObjects);
348
351
 
349
- app.get("/health", function (req, res) {
350
- res.status(200).send();
351
- });
352
-
353
352
  app.use(responseHandler.eventQueueHandler);
354
353
 
355
354
  app.use(responseHandler.logErrors);
package/docs/releases.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.42.1 - 09.09.21
6
+ Fix authentication issue with health check
7
+
5
8
  ### 1.42.0 - 08.09.21
6
9
 
7
10
  Add IDs to POST Actions for After Execution Scripts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {