Merge pull request #336 from shocknet/feature/add-tunnel-status

Add tunnel address public endpoint
This commit is contained in:
CapDog 2021-04-14 09:42:25 -04:00 committed by GitHub
commit 58f3e343f4
2 changed files with 6 additions and 1 deletions

View file

@ -482,6 +482,10 @@ module.exports = async (
res.json(health)
})
app.get('/tunnel/status', async (req, res) => {
res.json({ uri: await Storage.getItem('tunnel/url') })
})
/**
* kubernetes health check
*/

View file

@ -3,6 +3,7 @@ module.exports = {
GET: {
"/healthz": true,
"/ping": true,
"/tunnel/status": true,
// Errors out when viewing an API page from the browser
"/favicon.ico": true,
"/api/lnd/connect": true,
@ -32,5 +33,5 @@ module.exports = {
PUT: {},
DELETE: {}
},
nonEncryptedRoutes: ['/api/security/exchangeKeys', "/api/encryption/exchange", '/healthz', '/ping', '/api/lnd/wallet/status', '/api/gun/auth',"/api/subscribeStream"]
nonEncryptedRoutes: ['/api/security/exchangeKeys', "/api/encryption/exchange", '/healthz', '/ping', '/tunnel/status', '/api/lnd/wallet/status', '/api/gun/auth',"/api/subscribeStream"]
}