Skip to content

Commit e44f743

Browse files
authored
SYN-758: Removed ‘/health’ endpoint from Sandbox (#96)
1 parent 44d2a7c commit e44f743

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sandbox/app.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function beforeRequest(req, res, next) {
4848
next()
4949
}
5050

51-
const _health_endpoints = ['/_ping', '/health']
51+
const _health_endpoints = ['/_ping']
5252

5353
function afterRequest(req, res, next) {
5454
if (_health_endpoints.includes(req.path) && !('log' in Object.assign({}, req.query))) {
55-
// don't log ping / health by default
55+
// don't log _ping by default
5656
return next()
5757
}
5858
let finished_at = Date.now()
@@ -125,7 +125,6 @@ app.use(beforeRequest)
125125

126126
app.get('/_ping', handlers.status)
127127
app.get('/_status', handlers.status)
128-
app.get('/health', handlers.status)
129128

130129
// ******************************************************************
131130
// ** Root page

0 commit comments

Comments
 (0)