0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
Hannah Wolfe 016ee17ebb
Rework route service to prevent circular dependencies (#9229)
refs #9192, refs #9178  

After trying to progress with current implementation, it became clear that the route service can't control the boot sequence, because then we end up with circular dependencies between the route service and the channel service.

The route service now exposes:
-  a siteRouter 
- a way for apps to register routes.
- ParentRouter base class for other modules to use
- the registry

...

- moved the default route setup back to site/routes.js 🙈
- moved the parent channel router back to the channel service (this makes way more sense imo)
- this structure prevents circular dependencies
- split the registry out into it's own thing
- fixed-up various bits of tests and comments
- DEBUG will print a list of routes 🎉
2017-11-09 13:58:22 +00:00
..
adapters Moved isLocalFile fn to storage utils (#8985) 2017-11-09 11:11:54 +01:00
api Support for attribute-based permissions (#9025) 2017-09-26 18:06:14 +02:00
apps Highlighted routes, controllers & renderers 2017-11-08 09:45:12 +00:00
auth Removed defunct Ghost OAuth code (#9014) 2017-09-18 13:01:58 +01:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Moved Channels module -> services 2017-11-08 15:45:23 +00:00
data/importer 🎨 Support LTS imports (#8498) 2017-06-04 11:53:00 +02:00
helpers Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
metadata 🐛 Fixed author helper not returning the correct url (#9102) 2017-10-05 13:50:55 +02:00
middleware Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
models/base 🎨 change last_login to last_seen (#8259) 2017-04-05 20:45:55 +01:00
models_plugins Support filtering based on primary_tag (#9124) 2017-10-10 14:07:44 +02:00
permissions Permissions: minor refactors (#9104) 2017-10-05 21:01:34 +02:00
services Rework route service to prevent circular dependencies (#9229) 2017-11-09 13:58:22 +00:00
settings 🐛 Theme name is point number (#9184) 2017-10-26 13:54:18 +02:00
sitemap 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
themes Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
utils Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
admin_spec.js
apps_filters_spec.js
errors_spec.js
exporter_spec.js
ghost_sdk_spec.js 🐛 Fixed api url for the ghost sdk (#9013) 2017-09-18 16:28:22 +01:00
migration_fixture_utils_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
migration_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
server_utils_spec.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
social-urls_spec.js
utils_pipeline_spec.js
validation_spec.js Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00