Password change
This commit is contained in:
parent
0331834b92
commit
e283ec7004
3 changed files with 34 additions and 0 deletions
|
@ -68,6 +68,7 @@ func Handler() http.Handler {
|
|||
// Everything past this point requires a valid token
|
||||
routes := []r{
|
||||
r{handleLister(userService), "GET", "/users"},
|
||||
r{api.HandleUserPasswordChange, "POST", "/users/password"},
|
||||
r{handleGetter(userService), "GET", "/users/{ID:.+}"},
|
||||
r{handleUpdater(userService), "PUT", "/users/{ID:.+}"},
|
||||
r{handleLister(speciesService), "GET", "/species"},
|
||||
|
|
Reference in a new issue