app.get('/', function (req, res) { getKeyVaultCredentials().then( getKeyVaultSecret ).then(function (secret){ res.send(`Your secret value is: ${secret.value}.`); }).catch(function (err) { res.send(err); }); });
app.get('/', function (req, res) { getKeyVaultCredentials().then( getKeyVaultSecret ).then(function (secret){ res.send(`Your secret value is: ${secret.value}.`); }).catch(function (err) { res.send(err); }); });