rename Handler to Handle
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user