Added privilege modification to the API

This commit is contained in:
2021-03-12 15:04:01 +11:00
parent cbd3ed9d3e
commit 61ddd5b38f
4 changed files with 38 additions and 2 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ const route = async (req, res) => {
});
if (!account) {
res.status(401).send('Unknown account');
return res.status(401).send('Unknown account');
}
//respond with the private-facing data
res.status(200).json({
return res.status(200).json({
contact: account.contact
});
};