0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services/routing
kirrg001 c2fa469c4d Dynamic Routing Beta: Channels
refs #9601

- refactor architecture of routing so you can define a channel
- a channel is a different way of looking at your posts (a view)
- a channel does not change the url of a resource

Example channel

```
routes:
  /worldcup-2018-russia/:
    controller: channel
    filter: tag:football18
    data: tag.football18
```

- added ability to redirect resources to a channel/static route
- support templates for channels
- ensure we still support static routes (e.g. /about/: home)
- ensure pagination + rss works out of the box
2018-06-24 02:06:58 +02:00
..
assets Dynamic Routing Beta: Added resource config 2018-06-24 02:06:58 +02:00
controllers Dynamic Routing Beta: Channels 2018-06-24 02:06:58 +02:00
helpers Dynamic Routing Beta: Channels 2018-06-24 02:06:58 +02:00
middlewares
bootstrap.js Dynamic Routing Beta: Reordered router hierarchy 2018-06-24 02:06:58 +02:00
CollectionRouter.js 🎨 Dynamic Routing Beta: Extended collection feature (limit, order, data) 2018-06-24 02:06:58 +02:00
index.js
ParentRouter.js Dynamic Routing Beta: Added redirect middleware to ParentRouter 2018-06-24 02:06:58 +02:00
PreviewRouter.js
registry.js Dynamic Routing Beta: collection name behaviour 2018-06-21 20:59:43 +02:00
RSSRouter.js
StaticPagesRouter.js Dynamic Routing Beta: StaticPageRouter pre-checks for redirects 2018-06-24 02:06:58 +02:00
StaticRoutesRouter.js Dynamic Routing Beta: Channels 2018-06-24 02:06:58 +02:00
TaxonomyRouter.js Dynamic Routing Beta: Channels 2018-06-24 02:06:58 +02:00