Return JSON from /_publicKey
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user