@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 +3 -4
- package/docs/releases.md +3 -0
- package/package.json +1 -1
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