Ghost/ghost/admin/app/serializers/integration.js

12 lines
373 B
JavaScript

import ApplicationSerializer from './application';
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';
export default ApplicationSerializer.extend(EmbeddedRecordsMixin, {
attrs: {
apiKeys: {embedded: 'always'},
webhooks: {embedded: 'always'},
createdAtUTC: {key: 'created_at'},
updatedAtUTC: {key: 'updated_at'}
}
});