Add new profile/ route to set the showTutorial field

This commit is contained in:
Johannes Zellner
2016-05-06 13:56:40 +02:00
parent 3adf91afed
commit d41eb81b3d
2 changed files with 18 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ function initializeExpressSync() {
router.get ('/api/v1/profile', profileScope, routes.profile.get);
router.put ('/api/v1/profile', profileScope, routes.profile.update);
router.put ('/api/v1/profile/password', profileScope, routes.user.verifyPassword, routes.profile.changePassword);
router.put ('/api/v1/profile/tutorial', profileScope, routes.profile.setShowTutorial);
// user routes only for admins
router.get ('/api/v1/users', usersScope, routes.user.requireAdmin, routes.user.list);