diff --git a/httpr.go b/httpr.go index f2b1352..ad79a10 100644 --- a/httpr.go +++ b/httpr.go @@ -212,6 +212,7 @@ func (rr *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) { } // Handler registers a handler for provided pattern for a given HTTP method. +// Pattern must start with a slash (/) symbol. func (rr *Router) Handler(method, pattern string, handler http.HandlerFunc) error { path, err := newPath(pattern) if err != nil {