0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/web
Naz 11f37a9363 Refactor imports in API's routes files
refs https://github.com/TryGhost/Team/issues/856

- There were two problems with routes.js files defining API routes:
- First, the module requires wen too deep into the "api" module and used specific api modules directly. We have an "index.js" file which defines an API for whole API, it should be used as an entry point to anything to do with the API.
- Second, The naming was inconsistent between the routes.js files for "api", "apiV2", "apiCanary" - it is an extra maintenance burden to go on and change each "api" name when the new version is introduced. The only thing that should be changed within these files is a single line on very top that "requires" a specific API version like so: "const api = require('../../../../api').canary;" - way less maintenance to change that canary to v5 instead of doing an extra rename for all "apiCanary" to "apiV5"
2021-07-07 18:33:25 +04:00
..
admin Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
api Refactor imports in API's routes files 2021-07-07 18:33:25 +04:00
members Simplified + unified debug naming conventions 2021-07-07 09:57:14 +01:00
oauth Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
parent Simplified + unified debug naming conventions 2021-07-07 09:57:14 +01:00
shared Corrected deprecation comment 2021-07-02 13:50:11 +04:00
site Refactored bootstrap.init to require route settings 2021-07-07 10:25:45 +01:00
index.js
well-known.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00