avatar: remove query param

let the ui add the size and default
This commit is contained in:
Girish Ramakrishnan
2019-12-13 13:44:59 -08:00
parent d5c70a2b11
commit da85cea329
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ function initializeExpressSync() {
// working off the user behind the provided token
router.get ('/api/v1/profile', profileScope, routes.profile.get);
router.post('/api/v1/profile', profileScope, routes.profile.update);
router.get ('/api/v1/profile/avatar/:identifier', routes.profile.getAvatar);
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', profileScope, multipart, routes.profile.setAvatar);
router.del ('/api/v1/profile/avatar', profileScope, routes.profile.clearAvatar);
router.post('/api/v1/profile/password', profileScope, routes.users.verifyPassword, routes.profile.changePassword);