Supervisor API: remove the tcp-ping endpoints

Change-Type: major
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-11-22 19:37:15 -08:00
parent 7d8a208a06
commit 7c98a9d058

View File

@ -41,14 +41,6 @@ module.exports = class SupervisorAPI
setTimeout(blink.pattern.stop, 15000) setTimeout(blink.pattern.stop, 15000)
res.sendStatus(200) res.sendStatus(200)
@_api.post '/v1/tcp-ping', (req, res) =>
@config.set({ connectivityCheckEnabled: true })
res.sendStatus(204)
@_api.delete '/v1/tcp-ping', (req, res) =>
@config.set({ connectivityCheckEnabled: false })
res.sendStatus(204)
# Expires the supervisor's API key and generates a new one. # Expires the supervisor's API key and generates a new one.
# It also communicates the new key to the Resin API. # It also communicates the new key to the Resin API.
@_api.post '/v1/regenerate-api-key', (req, res) => @_api.post '/v1/regenerate-api-key', (req, res) =>