Add rest api to create a new token for a client

This commit is contained in:
Johannes Zellner
2016-06-07 14:29:37 +02:00
parent 6261231593
commit 96eeb247a1
3 changed files with 40 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ function initializeExpressSync() {
router.post('/api/v1/oauth/clients/:clientId', routes.developer.enabled, settingsScope, routes.clients.add);
router.del ('/api/v1/oauth/clients/:clientId', routes.developer.enabled, settingsScope, routes.clients.del);
router.get ('/api/v1/oauth/clients/:clientId/tokens', settingsScope, routes.clients.getClientTokens);
router.post('/api/v1/oauth/clients/:clientId/tokens', routes.developer.enabled, settingsScope, routes.clients.addClientToken);
router.del ('/api/v1/oauth/clients/:clientId/tokens', settingsScope, routes.clients.delClientTokens);
// app routes