Finished up with channel rank/perms frontend.

This commit is contained in:
rainbow napkin 2024-11-27 02:16:54 -05:00
parent edb4215929
commit 796bb033a7
22 changed files with 472 additions and 57 deletions

View file

@ -50,7 +50,7 @@ module.exports.get = async function(req, res){
//Send out the userlist we created
res.status(200);
res.send(userList);
res.send(Object.fromEntries(userList));
}else{
//If we received bad input, we have only one action: bitch, moan, and complain!
res.status(400);
@ -97,10 +97,10 @@ module.exports.post = async function(req, res){
}
//Set rank
var rankList = await chanDB.setRank(userDB, data.rank);
await chanDB.setRank(userDB, data.rank);
res.status(200);
res.send(rankList);
res.send(Object.fromEntries(await chanDB.getRankList()));
}else{
//If we received bad input, we have only one action: bitch, moan, and complain!
res.status(400);