mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
c2fa469c4d
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
42 lines
725 B
JavaScript
42 lines
725 B
JavaScript
module.exports = {
|
|
get postLookup() {
|
|
return require('./post-lookup');
|
|
},
|
|
|
|
get fetchData() {
|
|
return require('./fetch-data');
|
|
},
|
|
|
|
get renderEntries() {
|
|
return require('./render-entries');
|
|
},
|
|
|
|
get formatResponse() {
|
|
return require('./format-response');
|
|
},
|
|
|
|
get renderEntry() {
|
|
return require('./render-entry');
|
|
},
|
|
|
|
get renderer() {
|
|
return require('./renderer');
|
|
},
|
|
|
|
get templates() {
|
|
return require('./templates');
|
|
},
|
|
|
|
get secure() {
|
|
return require('./secure');
|
|
},
|
|
|
|
get handleError() {
|
|
return require('./error');
|
|
},
|
|
|
|
get context() {
|
|
return require('./context');
|
|
}
|
|
};
|