diff --git a/server.go b/server.go index 83a1176..a95d3c5 100644 --- a/server.go +++ b/server.go @@ -52,7 +52,7 @@ func (svc *Service) PostMiddleware(mw HandlerFunc) { svc.postMw = append(svc.postMw, mw) } -func (svc *Service) Handler(method string, handler HandlerFunc) { +func (svc *Service) Handle(method string, handler HandlerFunc) { svc.handlers[method] = handler }