return new uri

This commit is contained in:
hatim boufnichel 2021-06-12 20:06:09 +02:00
parent f5423ff65d
commit ae194754d7

View file

@ -486,7 +486,11 @@ module.exports = async (
})
app.get('/tunnel/status', async (req, res) => {
res.json({ uri: await Storage.getItem('tunnel/url') })
const [relayId, relayUrl] = await Promise.all([
Storage.getItem('relay/id'),
Storage.getItem('relay/url')
])
res.json({ uri: `${relayId}@${relayUrl}` })
})
/**