From 4716c25cf66b40a87e0bf3c13f8040e1fcfd1092 Mon Sep 17 00:00:00 2001 From: Oleg Borodin Date: Wed, 17 May 2023 22:35:35 +0200 Subject: [PATCH] rename Handler to Handle --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }