0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
Nazar Gargol 4c5bff0f49 Removed toJSON serialization in findPage method (#9899)
refs #9866

- Removed `toJSON` call in `findPage`
- Added JSON serialization on API layer
- Reason: model and api layer were coupled - all other model actions just returned the raw data and no specific format
- Corrected test suites to serialize fetched models to JSON
- Removed `absolute_urls` attribute from validOptions findPage methods as it's no longer needed in the data layer
- Changed 'include' test as this option is now tolerated and returns data
2018-09-26 14:11:22 +02:00
..
base Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
plugins 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
relations Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
invite.js Dynamic Routing: Added migration for routes.yaml file (#9692) 2018-06-22 20:28:01 +02:00
permission.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
settings.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
subscriber.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
tag.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
user.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
webhook.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00