-
Notifications
You must be signed in to change notification settings - Fork 26
Allow urlPath override for httpAdapter #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@internalfx Can you please remove the changes to |
@jmdobry sure thing |
if (method === 'find' || method === 'update' || method === 'destroy') { | ||
args.push(id); | ||
if (isString(options.urlPath)) { | ||
return makePath.apply(DSUtils, [options.basePath || _this.defaults.basePath || resourceConfig.basePath].concat(options.urlPath.split('/'))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you have to split options.urlPath
, I think you can just make it the second item in the array passed to madePath.apply
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmdobry I see now.
arrggg. I think I've now totally messed up my repo. Git is great until you need to change history. And I'm not that good at git. |
How about I just throw your changes into a commit so I can cut a release? |
@jmdobry got it. |
Allow urlPath override for httpAdapter
I only see 1 commit. let me look |
nope, refreshed |
ok, cool |
I also made your changes to the array |
Needed to remove the |
@jmdobry I'm also simultaneously migrating a chat server. Perhaps my attention was a little divided. |
This PR allows you to specify a
urlPath
option when running an async method.Example: