Noobish routing question


I’m a beginner with using Echo and so far I love it … except for one routing quirk that I can’t get the hang of.

I have a group with a certain prefix like “/api/root”.
Now, I’m adding paths to this group.

myGroup.GET("/", myHandler1)
myGroup.GET("/path", myHandler2)

now, myHandler one will only respond to “”/api/root/", but not “/api/root”
Is there a way to handle my root path with or without “/” in the same way without duplicating the line?