HandlerFunc is an adapter which allows the usage of an http.HandlerFunc as a request handle.
(method, path string, handler http.HandlerFunc)
| 280 | // HandlerFunc is an adapter which allows the usage of an http.HandlerFunc as a |
| 281 | // request handle. |
| 282 | func (r *Router) HandlerFunc(method, path string, handler http.HandlerFunc) { |
| 283 | r.Handler(method, path, handler) |
| 284 | } |
| 285 | |
| 286 | // ServeFiles serves files from the given file system root. |
| 287 | // The path must end with "/*filepath", files are then served from the local |