Implemented savePreferences API

This commit is contained in:
utkarshcmu
2016-03-06 03:47:39 -08:00
parent 1ef332e82c
commit 660d3fa1e9
8 changed files with 73 additions and 58 deletions

View File

@ -96,7 +96,7 @@ func Register(r *macaron.Macaron) {
r.Delete("/stars/dashboard/:id", wrap(UnstarDashboard))
r.Put("/password", bind(m.ChangeUserPasswordCommand{}), wrap(ChangeUserPassword))
r.Get("/quotas", wrap(GetUserQuotas))
r.Put("/prefs", bind(m.SavePreferenceCommand{}), wrap(SaveUserPreferences))
r.Put("/prefs", bind(m.SavePreferencesCommand{}), wrap(SaveUserPreferences))
})
// users (admin permission required)