We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 530e54f commit c20f1e1Copy full SHA for c20f1e1
cmd/server/main.go
@@ -75,6 +75,7 @@ func main() {
75
r.HandleFunc("/method/post", method.HandlePost).Methods(http.MethodPost)
76
r.HandleFunc("/method/put", method.HandlePut).Methods(http.MethodPut)
77
r.HandleFunc("/method/trace", method.HandleTrace).Methods(http.MethodTrace)
78
+
79
oauth2router := r.NewRoute().Subrouter()
80
oauth2router.Use(middleware.OAuth2)
81
oauth2router.HandleFunc("/ecommerce/products", ecommerce.HandleListProducts).Methods(http.MethodGet)
0 commit comments