Add token scope tests in routes

This commit is contained in:
Johannes Zellner
2022-09-24 20:56:43 +02:00
parent 6d7f7fbc9a
commit cde22cd0a3
2 changed files with 32 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ function initializeExpressSync() {
router.get ('/api/v1/app_passwords/:id', token, routes.appPasswords.get);
router.del ('/api/v1/app_passwords/:id', token, routes.appPasswords.del);
// access tokenss
// access tokens
router.get ('/api/v1/tokens', token, routes.tokens.list);
router.post('/api/v1/tokens', json, token, routes.tokens.add);
router.get ('/api/v1/tokens/:id', token, routes.tokens.verifyOwnership, routes.tokens.get);