flatiron/director — pull request #107 by vesse (2012-05-28 10:20:56+00:00)
Title: mount() does not work as documented

According to documentation [1] `mount()` parameters are of type object and string|Regexp. However in reality they `path` parameter must be an array. So split the path into an array if it's not one.

Giving the function a RegExp as a parameter still fails (now on the split() call instead of the earlier slice()), but since I fail to see how this could ever be useful I didn't do anything to it.

[1] https://github.com/flatiron/director#mountroutes-path