Skip to content

Commit

Permalink
[doc] Fixed readme mux path prefix (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
llitfkitfk authored and elithrar committed Nov 22, 2016
1 parent 10e8fd1 commit 6958173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func main() {
r := mux.NewRouter()

api := r.PathPrefix("/api").Subrouter()
api.HandleFunc("/user/:id", GetUser).Methods("GET")
api.HandleFunc("/user/{id}", GetUser).Methods("GET")

http.ListenAndServe(":8000",
csrf.Protect([]byte("32-byte-long-auth-key"))(r))
Expand Down

0 comments on commit 6958173

Please sign in to comment.