Add validator interface to unify and for readability #11

Merged
xdrm-brackets merged 6 commits from refactor/config-validator into 0.3.0 2020-03-28 11:33:35 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit eef94ff998 - Show all commits

View File

@ -64,7 +64,7 @@ func (s Server) ToHTTPServer() (*httpServer, error) {
for _, service := range s.config.Services {
found := false
for _, handler := range s.handlers {
if handler.GetPath() == service.Pattern {
if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern {
found = true
break
}