Ghost/core/server/api/v2/utils
Fabien O'Carroll 7785fb6dc5 Refactored usage of pre v4 "unsplash" setting format
refs https://github.com/TryGhost/Ghost/issues/10318

- API changes introduced:

canary/v4 Admin API
GET /settings/ (browse)

+ "unsplash" present in response as boolean value

GET /settings/:settingName (read)

+ "unsplash" present in response as boolean value

PUT /settings/ (edit)

+ "unsplash" updates setting, accepts ONLY  boolean format

v3  Admin API
GET /settings/ (browse)

+ "unsplash" present in response with object value

GET /settings/:settingName (read)

+ "unsplash" present in response with object value

PUT /settings/ (edit)

+ "unsplash" updates setting, accepts either boolean or object formats

v2 Admin API
GET /settings/ (browse)

+ "unsplash" present in response with object value

GET /settings/:settingName (read)

+ "unsplash" present in response with object value

PUT /settings/ (edit)

+ "unsplash" updates setting, accepts object format
2021-02-18 10:55:59 +13:00
..
serializers Refactored usage of pre v4 "unsplash" setting format 2021-02-18 10:55:59 +13:00
validators Refactored usage of pre v4 "unsplash" setting format 2021-02-18 10:55:59 +13:00
index.js Added comments for Ghost API 2019-05-06 14:49:25 +02:00
permissions.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00