| Using prefixed (aka. subrouter) router is exactly same as the main one: | Using prefixed (aka. subrouter) router is exactly same as the main one: | ||||
| ```go | ```go | ||||
| app := rex.new() | |||||
| app := rex.New() | |||||
| app.GET("/", func(w http.ResponseWriter, r *http.Request) { | app.GET("/", func(w http.ResponseWriter, r *http.Request) { | ||||
| io.WriteString(w, "index page") | io.WriteString(w, "index page") | ||||
| }) | }) |