diff --git a/group.go b/group.go index 93737c0..ddfb76e 100644 --- a/group.go +++ b/group.go @@ -5,7 +5,7 @@ package tango type groupRouter struct { - methods []string + methods interface{} url string c interface{} } @@ -63,7 +63,7 @@ func (g *Group) Any(url string, c interface{}) { g.Route([]string{"HEAD:Get"}, url, c) } -func (g *Group) Route(methods []string, url string, c interface{}) { +func (g *Group) Route(methods interface{}, url string, c interface{}) { g.routers = append(g.routers, groupRouter{methods, url, c}) } diff --git a/tan.go b/tan.go index 8660a25..9a0adc1 100644 --- a/tan.go +++ b/tan.go @@ -13,7 +13,7 @@ import ( ) func Version() string { - return "0.4.7.0215" + return "0.4.8.0314" } type Tango struct {