Remove sensitive information from LoggedUser endpoint

This commit is contained in:
Marcos Lilljedahl
2017-11-09 19:21:31 -03:00
parent 15a833fcf5
commit e91a1f3e6f
2 changed files with 1 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ func Register(extend HandlerExtender) {
http.ServeFile(rw, r, "./www/landing.html")
}).Methods("GET")
corsRouter.HandleFunc("/users/me", LoggedInUser).Methods("GET")
corsRouter.HandleFunc("/users/me", GetUser).Methods("GET")
r.HandleFunc("/users/{userId:^(?me)}", GetUser).Methods("GET")
r.HandleFunc("/oauth/providers", ListProviders).Methods("GET")
r.HandleFunc("/oauth/providers/{provider}/login", Login).Methods("GET")