Allow partial paths like /api/v1
fix the code to be the other way around
Merge pull request #1 from ishmael/allow-partial-path

Allow partial path