diff options
author | Alan Pearce | 2017-07-08 22:30:36 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-08 22:30:36 +0200 |
commit | be533ddc740c77551c714836da08a651b81825b6 (patch) | |
tree | a0ec9e5d4d3f14f0b6afaa3d0f8a84e02d9c1cf7 /src/responders.js | |
parent | f1dabb589af4cfaf15d04ff7c399f8a9a2d5223a (diff) | |
download | homestead-be533ddc740c77551c714836da08a651b81825b6.tar.lz homestead-be533ddc740c77551c714836da08a651b81825b6.tar.zst homestead-be533ddc740c77551c714836da08a651b81825b6.zip |
refactor: assign responders to actions via front controller
Diffstat (limited to 'src/responders.js')
-rw-r--r-- | src/responders.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responders.js b/src/responders.js index f85198f..8f084a3 100644 --- a/src/responders.js +++ b/src/responders.js @@ -93,7 +93,7 @@ module.exports = { postIndentLevel, indentForTemplate, - home(ctx, config, posts) { + home(ctx, config, { posts }) { ctx.type = "html"; ctx.body = layout( @@ -105,7 +105,7 @@ module.exports = { ); }, - list(ctx, config, listType, listName, posts) { + list(ctx, config, { listType, listName, posts }) { ctx.type = "html"; ctx.body = layout( @@ -117,7 +117,7 @@ module.exports = { ); }, - post(ctx, config, post) { + post(ctx, config, { post }) { ctx.type = "html"; ctx.body = layout( |