func Handler(router *mux.Router) { router.HandleFunc("/tokens", GetToken) router.HandleFunc("/signup", SignUp) router.HandleFunc("/active/{id}", ActiveAccount) router.HandleFunc("/profiles", auth.OAuthHandleWrapper(UserList, []string{"admin"}, nil)) router.HandleFunc("/profiles/{id}/info", UserInfoUpdate).Methods("PUT") router.HandleFunc("/profiles/{id}/info", UserInfoDetail).Methods("GET") router.HandleFunc("/profiles/{id}/change-password", PasswordUpdate) }
func Handler(router *mux.Router) { router.HandleFunc("/configurations", auth.OAuthHandleWrapper(GetConf, []string{"admin"}, nil)).Methods("GET") router.HandleFunc("/configurations", auth.OAuthHandleWrapper(SetConf, []string{"admin"}, nil)).Methods("POSTa") }