Ghost/core/server/web
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
..
admin Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
api Added /tiers endpoint to Content API 2022-03-03 15:15:43 +02:00
members Removed public cache-control header for member site endpoint 2022-03-03 15:25:49 +00:00
oauth Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
parent Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00
shared Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00