Description

NewRouter creates a new Router instance. If you aren't using ClassicMartini, then you can add Routes as a service with:

m := martini.New()
r := martini.NewRouter()
m.MapTo(r, (*martini.Routes)(nil))

If you are using ClassicMartini, then this is done for you.

NewRouter is referenced in 85 repositories

github.com/go-martini/martini github.com/typepress/core github.com/rafecolton/docker-builder

...