Add endpoint to retrieve user by userId

This commit is contained in:
Marcos Lilljedahl
2017-10-16 19:43:56 -03:00
parent 1b0d363ffe
commit 4850a7b496
3 changed files with 25 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ func Register(extend HandlerExtender) {
}).Methods("GET")
r.HandleFunc("/users/me", LoggedInUser).Methods("GET")
r.HandleFunc("/users/{userId}", GetUser).Methods("GET")
r.HandleFunc("/oauth/providers", ListProviders).Methods("GET")
r.HandleFunc("/oauth/providers/{provider}/login", Login).Methods("GET")
r.HandleFunc("/oauth/providers/{provider}/callback", LoginCallback).Methods("GET")