Merge pull request #336 from shocknet/feature/add-tunnel-status
Add tunnel address public endpoint
This commit is contained in:
commit
58f3e343f4
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue