fixed api path construction
Merge pull request #15 from mikeedwards/fix-api-path

fixed api path construction