Add app passwords feature
This commit is contained in:
@@ -192,6 +192,11 @@ function initializeExpressSync() {
|
||||
router.post('/api/v1/profile/twofactorauthentication/enable', profileScope, routes.profile.enableTwoFactorAuthentication);
|
||||
router.post('/api/v1/profile/twofactorauthentication/disable', profileScope, routes.users.verifyPassword, routes.profile.disableTwoFactorAuthentication);
|
||||
|
||||
router.get ('/api/v1/app_passwords', profileScope, routes.appPasswords.list);
|
||||
router.post('/api/v1/app_passwords', profileScope, routes.appPasswords.add);
|
||||
router.get ('/api/v1/app_passwords/:id', profileScope, routes.appPasswords.get);
|
||||
router.del ('/api/v1/app_passwords/:id', profileScope, routes.appPasswords.del);
|
||||
|
||||
// user routes
|
||||
router.get ('/api/v1/users', usersReadScope, routes.users.list);
|
||||
router.post('/api/v1/users', usersManageScope, routes.users.create);
|
||||
|
||||
Reference in New Issue
Block a user