Closed Globegitter closed 9 years ago
:+1: but can we get a test to cover regressions?
Yep, will look into that now.
Added and passing. Let me know if that works.
Awesome, thanks. We just started using this style a month ago. Thanks for catching those.
Last request, can you squash into a single commit?
Yep of course - all squashed.
Thanks!
When you provide an empty string for the admin namespace, but provided a namespace within your adapter then you get a resulting namespace with a trailing slash which leads to generate a url with two slashes.
Example: application adapter namespace:
admin namespace:
namespace: ''
leads tohttp://localhost:1337/api/v1//model
The replace makes sure that the last slash in the namespace gets removed and this then leads to the correct url
http://localhost:1337/api/v1/model