mux icon indicating copy to clipboard operation
mux copied to clipboard

Group routing

Open joefazee opened this issue 9 years ago • 0 comments

it will be cool to have group routing instead of us doing

`r := mux.Classic()

    r.HandleFunc(http.MethodGet, "/admin/home",  adminHomeHandler)
     r.HandleFunc(http.MethodGet, "/admin/profile",  adminProfileHandler)`

We can just have maybe admin := mux.Group("admin") then admin.HandleFunc(http.MethodGet, "/home", adminHomeHandler)

Just a thought

joefazee avatar Dec 05 '16 20:12 joefazee