Skip to content

Commit 6958173

Browse files
llitfkitfkelithrar
authored andcommitted
[doc] Fixed readme mux path prefix (#51)
1 parent 10e8fd1 commit 6958173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func main() {
130130
r := mux.NewRouter()
131131

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

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

0 commit comments

Comments
 (0)