1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package httprouter
- import (
- "net/http"
- )
- func (r *Router) Handler(method, path string, handler http.Handler) {
- r.Handle(method, path,
- func(w http.ResponseWriter, req *http.Request) {
-
-
-
- handler.ServeHTTP(w, req)
- },
- )
- }
|