Ghost/core/shared
Naz 9c64d7af81 Centralized base API path value across server codebase
refs https://github.com/TryGhost/Team/issues/1420

- This changeset makes the "/ghost/api" base path for the APIs centralized in one place and reused by dependent modules. There are couple benefits this refactor brings: easy way to spot where the API base path is used (was hard to find it in regexp) and makes it easy to change the hardcoded path to a configurable one in the future (e.g. host all APIs under `domain.tld/custom-path/awesome-apis/posts`)
- I hear that scream from the back of your head: "But hey! This introduced coupling to url-utils!". To that my unswer is: "No. This change only makes the coupling explicit, it's been there already and now can be addressed if we need to!".
- A neat thing about his change, making the API work on a custom path is one line away, by moving the hardcoded `/ghost/api` to a config ;)
2022-03-09 17:15:51 +08:00
..
config Updated Portal to handle new tier visibility property 2022-03-08 11:33:51 +05:30
settings-cache Swapped to American English spellings 2021-08-09 13:35:01 +04:00
custom-theme-settings-cache.js Added syncing and theme exposure of custom theme settings (#13354) 2021-09-23 12:44:39 +01:00
express.js Fixed typo 2021-12-06 21:28:53 +13:00
html-to-plaintext.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
labs.js Removed membersTimeFilters labs flag 2022-03-04 12:11:48 +00:00
sentry.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
url-utils.js Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00