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 85b8c20 commit 59ce668Copy full SHA for 59ce668
README.md
@@ -190,9 +190,9 @@ func handler(w http.ResponseWriter, r *http.Request) {
190
func main() {
191
r := mux.NewRouter()
192
r.HandleFunc("/", handler)
193
- r.Methods("POST").HandleFunc("/products", handler)
194
- r.Methods("GET").HandleFunc("/articles", handler)
195
- r.Methods("GET", "PUT").HandleFunc("/articles/{id}", handler)
+ r.HandleFunc("/products", handler).Methods("POST")
+ r.HandleFunc("/articles", handler).Methods("GET")
+ r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
196
r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
197
t, err := route.GetPathTemplate()
198
if err != nil {
0 commit comments