Skip to content

Commit 556474e

Browse files
fix: Consistency issue in README
1 parent df7e229 commit 556474e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func addProduct(w http.ResponseWriter, r *http.Request) error {
6464
chain := errhandler.Chain(midLog1, midLog2)
6565

6666
mux := http.NewServeMux()
67-
mux.Handle("GET /products", errhandler.Wrap(chain(getProducts)))
67+
mux.Handle("GET /products/{id}", errhandler.Wrap(chain(getProducts)))
6868

6969
func midLog1(n errhandler.Wrap) errhandler.Wrap {
7070
return func(w http.ResponseWriter, r *http.Request) error {
@@ -79,4 +79,8 @@ func midLog2(n errhandler.Wrap) errhandler.Wrap {
7979
return n(w, r)
8080
}
8181
}
82+
83+
func addProduct(w http.ResponseWriter, r *http.Request) error {
84+
...
85+
}
8286
```

0 commit comments

Comments
 (0)