mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
050f1751c4
refs #5091 - remove the use of functions - remove unnecessary quotes from tag filter - move channel config to be a JSOn file called config.channels.json - accept external config - new channelUtils for tests - remove channelConfig.get - refactor so tests work as expected - refactor away duplicate 'name' value
42 lines
989 B
JSON
42 lines
989 B
JSON
{
|
|
"index": {
|
|
"route": "/",
|
|
"frontPageTemplate": "home"
|
|
},
|
|
"tag": {
|
|
"route": "/:rkw-tag/:slug/",
|
|
"postOptions": {
|
|
"filter": "tags:'%s'+tags.visibility:public"
|
|
},
|
|
"data": {
|
|
"tag": {
|
|
"type": "read",
|
|
"resource": "tags",
|
|
"options": {
|
|
"slug": "%s",
|
|
"visibility": "public"
|
|
}
|
|
}
|
|
},
|
|
"slugTemplate": true,
|
|
"editRedirect": "#/settings/tags/:slug/"
|
|
},
|
|
"author": {
|
|
"route": "/:rkw-author/:slug/",
|
|
"postOptions": {
|
|
"filter": "author:'%s'"
|
|
},
|
|
"data": {
|
|
"author": {
|
|
"type": "read",
|
|
"resource": "users",
|
|
"options": {
|
|
"slug": "%s"
|
|
}
|
|
}
|
|
},
|
|
"slugTemplate": true,
|
|
"editRedirect": "#/team/:slug/"
|
|
}
|
|
}
|