Altered API, read more

I moved /auth/account/privilege to /admin/privilege

I also fixed PATCH and DELETE on /account
This commit is contained in:
2021-03-14 04:34:46 +11:00
parent 61ddd5b38f
commit b2bf1aaf92
8 changed files with 40 additions and 28 deletions
+3 -5
View File
@@ -17,10 +17,8 @@ router.use(tokenAuth);
//basic account management (needs a token)
router.delete('/logout', require('./logout'));
router.get('/account', require('./account'));
router.patch('/update', require('./update'));
router.delete('/deletion', require('./deletion'));
router.patch('/account/privilege', require('./account-privilege'));
router.get('/account', require('./account-query'));
router.patch('/account', require('./account-update'));
router.delete('/account', require('./account-delete'));
module.exports = router;