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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| answer: null, | |
| actions: { | |
| submit() { } | |
| } | |
| }); |
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
| import DS from 'ember-data'; | |
| import Ember from 'ember'; | |
| export default DS.RESTAdapter.extend({ | |
| // Overwrite to change the request types on which Form Data is sent | |
| formDataTypes: ['POST', 'PUT', 'PATCH'], | |
| host: 'http://test.com', | |
| // Overwrite to flatten the form data by removing the root | |
| disableRoot: false, |