0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api
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
..
authentication.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
clients.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
configuration.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
db.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
index.js Updated api.http handling of controller returned fns (#9907) 2018-09-26 08:13:41 +02:00
invites.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
mail.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
notifications.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
oembed.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
posts.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
redirects.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
roles.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
schedules.js Refactored direct usages of api controllers 2018-09-21 15:18:22 +02:00
settings.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
slack.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
slugs.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
subscribers.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
tags.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
themes.js Normalised how we require models 2018-09-21 15:16:19 +02:00
upload.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
users.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
utils.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00
webhooks.js ES6 migration: server/api/ (#9876) 2018-09-18 15:59:56 +02:00