Return JSON from /_publicKey

This commit is contained in:
MICHAEL JACKSON
2017-11-13 21:33:04 -08:00
parent ba6fb43aa4
commit a38eebfe7e
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
const AuthAPI = require('../AuthAPI')
function showPublicKey(req, res) {
res.type('text').send(AuthAPI.getPublicKey())
res.send({ publicKey: AuthAPI.getPublicKey() })
}
module.exports = showPublicKey