Created
June 27, 2014 13:53
-
-
Save ksol/b52cf88899635ea72fb8 to your computer and use it in GitHub Desktop.
Override Ember Data application adapter to force the use of .json extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MyApp.ApplicationAdapter = DS.RESTAdapter.extend({ | |
| buildURL: function() { | |
| var base; | |
| base = this._super.apply(this, arguments); | |
| return "" + base + ".json"; | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment