0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/web
Hannah Wolfe fdefa4964f Moved bridge into its proper location
- Modules in /shared are supposed to be standalone modules that can be required by the server or frontend
- As the server shouldn't require the frontend, and vice versa, shared modules should require neither
- Otherwise it just becomes a crutch for allowing cross-depenencies, and will create circular dependencies

The Bridge
- The bridge file is not meant to be a crutch sat allowing cross-dependencies, but rather a new component that manages the flow of data
- That data flows from the server/boot process TO the frontend, and should not flow in the other direction
- The management of that flow of data is necessarily hacky at the moment, but over time the architecture here should get clearer and better
- Still, for the time being it will need to handle requiring across components until that architecture matures
- Therefore, it should live in core root, not in core/shared
2021-04-26 14:38:57 +01:00
..
admin Added theme preview mode 2021-02-17 13:49:41 +00:00
api Added Products API to Admin API 2021-04-20 13:04:51 +01:00
members Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
oauth Added oauth parameters to get a refresh token during login 2021-04-23 11:20:40 +02:00
parent Moved bridge into its proper location 2021-04-26 14:38:57 +01:00
shared Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
site Moved bridge into its proper location 2021-04-26 14:38:57 +01:00
index.js
well-known.js Added Router etc to shared/express + use everywhere 2020-05-01 19:32:57 +01:00