diff --git a/module.go b/module.go index 3cb433117..9be24dbe4 100644 --- a/module.go +++ b/module.go @@ -44,7 +44,7 @@ func (m *Module) ControllerByName(name, action string) (ctype *ControllerType) { comparision = m.Namespace() + name } for _, c := range m.ControllerTypeList { - if strings.Index(c.Name(), comparision) > -1 { + if c.Name() == comparision { ctype = c break }