Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
add more forms support for group Route
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Mar 14, 2016
1 parent a964cba commit 20b514b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package tango

type groupRouter struct {
methods []string
methods interface{}
url string
c interface{}
}
Expand Down Expand Up @@ -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})
}

Expand Down
2 changes: 1 addition & 1 deletion tan.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func Version() string {
return "0.4.7.0215"
return "0.4.8.0314"
}

type Tango struct {
Expand Down

0 comments on commit 20b514b

Please sign in to comment.