#handler for each path ?

5 messages · Page 1 of 1 (latest)

mental fog
#

most 3rd party routers support grouping routes, I'd look into those

#

not sure if it's possible with the built-in one

viral steppe
#

hate to be that guy, but isn't there a way to write a for loop that will split "last" route by slashes and then call HandleFunc for each of such?

knotty coral
#

You can do this with the built-in servemux, but it's not pretty. I'd honestly just use chi. It supports mounting and grouping collections of routes