Skip to content

Commit

Permalink
Add /anything route (rakyll#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm authored Jul 24, 2022
1 parent 86d5a04 commit 6740230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httpbin/httpbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func (h *HTTPBin) Handler() http.Handler {
mux.HandleFunc("/absolute-redirect/", h.AbsoluteRedirect)
mux.HandleFunc("/redirect-to", h.RedirectTo)

mux.HandleFunc("/anything/", h.RequestWithBody)
mux.HandleFunc("/anything", h.RequestWithBody)

mux.HandleFunc("/cookies", h.Cookies)
mux.HandleFunc("/cookies/set", h.SetCookies)
mux.HandleFunc("/cookies/delete", h.DeleteCookies)
Expand Down
1 change: 1 addition & 0 deletions httpbin/static/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6740230

Please sign in to comment.