sammyt / rhumb

URL routing in js
MIT License
4 stars 4 forks source link

Can't find root resources #5

Closed mstade closed 9 years ago

mstade commented 10 years ago

If you register the url / it will be placed in the lookup tree, however it's not possible to find. I think this is because of some early exits in find which will effectively short circuit if the segment array is empty; which it will be, since falsy values are filtered out.

It should be valid to register a handle at / -- it might be a special case, but it should be possible. The workaround for now is to add something else, I use /_ to the root resource.

mstade commented 9 years ago

This issue was moved to websdk/rhumb#1