mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 08:13:39 +08:00
12 lines
295 B
JavaScript
12 lines
295 B
JavaScript
import JsonApiSerializer from 'ember-json-api/json-api-serializer';
|
|
export default JsonApiSerializer.extend({
|
|
normalize: function(type, hash, property) {
|
|
var json = {};
|
|
|
|
for (var prop in hash) {
|
|
json[prop.camelize()] = hash[prop];
|
|
}
|
|
|
|
return this._super(type, json, property);
|
|
}
|
|
}); |