Ghost/ghost/custom-theme-settings-service
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
..
lib Changed "NotFoundError" and "BadRequestError" to "ValidationError" 2021-10-08 15:40:44 +01:00
test Changed "NotFoundError" and "BadRequestError" to "ValidationError" 2021-10-08 15:40:44 +01:00
.eslintrc.js slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
index.js First pass at custom-theme-settings-service functionality 2021-09-22 21:56:45 +01:00
LICENSE slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
package.json Published new versions 2021-10-07 16:58:21 +01:00
README.md slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00

Custom Theme Settings Service

Install

npm install @tryghost/custom-theme-settings-service --save

or

yarn add @tryghost/custom-theme-settings-service

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.