Implemented GetUserPreferences API

This commit is contained in:
utkarshcmu
2016-03-06 11:42:15 -08:00
parent 660d3fa1e9
commit 8f42bec270
4 changed files with 53 additions and 1 deletions
+1 -1
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.SavePreferencesCommand{}), wrap(SaveUserPreferences))
r.Combo("/prefs").Get(GetUserPreferences).Put(bind(m.SavePreferencesCommand{}), wrap(SaveUserPreferences))
})
// users (admin permission required)