add directory config setting

part of #704
This commit is contained in:
Girish Ramakrishnan
2020-07-09 14:35:34 -07:00
parent f94ff49fb9
commit 0f5b7278b8
3 changed files with 59 additions and 12 deletions

View File

@@ -144,9 +144,9 @@ function initializeExpressSync() {
// working off the user behind the provided token
router.get ('/api/v1/profile', token, routes.profile.get);
router.post('/api/v1/profile', token, routes.profile.update);
router.post('/api/v1/profile', token, routes.profile.authorize, routes.profile.update);
router.get ('/api/v1/profile/avatar/:identifier', routes.profile.getAvatar); // this is not scoped so it can used directly in img tag
router.post('/api/v1/profile/avatar', token, multipart, routes.profile.setAvatar);
router.post('/api/v1/profile/avatar', token, routes.profile.authorize, multipart, routes.profile.setAvatar);
router.del ('/api/v1/profile/avatar', token, routes.profile.clearAvatar);
router.post('/api/v1/profile/password', token, routes.users.verifyPassword, routes.profile.changePassword);
router.post('/api/v1/profile/twofactorauthentication', token, routes.profile.setTwoFactorAuthenticationSecret);