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 10e8fd1 commit 6958173Copy full SHA for 6958173
README.md
@@ -130,7 +130,7 @@ func main() {
130
r := mux.NewRouter()
131
132
api := r.PathPrefix("/api").Subrouter()
133
- api.HandleFunc("/user/:id", GetUser).Methods("GET")
+ api.HandleFunc("/user/{id}", GetUser).Methods("GET")
134
135
http.ListenAndServe(":8000",
136
csrf.Protect([]byte("32-byte-long-auth-key"))(r))
0 commit comments