Skip to content

Instantly share code, notes, and snippets.

@carols10cents
Last active February 11, 2017 22:02
Show Gist options
  • Save carols10cents/784408ba44cf5c35ef87f5a4a0adc3ec to your computer and use it in GitHub Desktop.
Save carols10cents/784408ba44cf5c35ef87f5a4a0adc3ec to your computer and use it in GitHub Desktop.
modified: app/adapters/dependency.js
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ dependency.js:11 @ export default ApplicationAdapter.extend({
delete query.reverse;
var { crate } = query;
delete query.crate;
- return this.ajax(`${this.urlPrefix()}/crates/${crate.get('id')}/reverse_dependencies`,
+ return this.ajax(`/${this.urlPrefix()}/crates/${crate.get('id')}/reverse_dependencies`,
'GET', { data: query });
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment