From c0aaf0a3a4a1cf172b06f4873f28bb5b19ca1152 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Thu, 4 Mar 2021 00:16:11 -0300 Subject: [PATCH] Fix Users handler. This never worked :D Signed-off-by: Marcos Lilljedahl --- handlers/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/bootstrap.go b/handlers/bootstrap.go index f4a9e66..1726686 100644 --- a/handlers/bootstrap.go +++ b/handlers/bootstrap.go @@ -117,7 +117,7 @@ func Register(extend HandlerExtender) { r.HandleFunc("/", Landing).Methods("GET") corsRouter.HandleFunc("/users/me", LoggedInUser).Methods("GET") - r.HandleFunc("/users/{userId:^(?me)}", GetUser).Methods("GET") + r.HandleFunc("/users/{userId:.{3,}}", 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")