Skip to content

Instantly share code, notes, and snippets.

@ksol
Created October 20, 2015 22:17
Show Gist options
  • Save ksol/65105f267a8f075bb501 to your computer and use it in GitHub Desktop.
Save ksol/65105f267a8f075bb501 to your computer and use it in GitHub Desktop.
import ApplicationAdapter from './application';
import UrlTemplates from "ember-data-url-templates";
export default ApplicationAdapter.extend(UrlTemplates, {
updateRecordUrlTemplate: '{+host}/posts/{id}{/updateEndpoint}',
urlSegments: {
updateEndpoint(type, id, snapshot) {
return snapshot.get('_updateEndpoint');
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment