Add tunnel address public endpoint

This commit is contained in:
Erfan Besharat 2021-04-14 18:00:57 +04:30
parent 50e54eab92
commit 124ddcebdd
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"]
}