2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/ghost/custom-theme-settings-service/lib
Kevin Ansfield b708c7ea67 Changed "NotFoundError" and "BadRequestError" to "ValidationError"
refs https://github.com/TryGhost/Team/issues/1104

- better matches the context of the request as we're validating known keys and valid options from multiple settings
  - "404 Not Found" didn't make sense because `/custom_theme_settings/` _does_ exist, it's just that one setting key wasn't known
  - "400 Bad Request" didn't make sense because the request was understood, it just failed validation of the setting values
2021-10-08 15:40:44 +01:00
..
bread.js First pass at custom-theme-settings-service functionality 2021-09-22 21:56:45 +01:00
cache.js Added tests for Cache class, fixed singular .get('key') behaviour 2021-10-06 13:12:26 +01:00
service.js Changed "NotFoundError" and "BadRequestError" to "ValidationError" 2021-10-08 15:40:44 +01:00