rename Handler to Handle

This commit is contained in:
2023-05-17 22:35:35 +02:00
parent 9bc3aef167
commit 4716c25cf6

View File

@@ -52,7 +52,7 @@ func (svc *Service) PostMiddleware(mw HandlerFunc) {
svc.postMw = append(svc.postMw, mw) 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 svc.handlers[method] = handler
} }