summary refs log tree commit diff stats
path: root/src/responders.js
diff options
context:
space:
mode:
authorAlan Pearce2017-07-08 22:30:36 +0200
committerAlan Pearce2017-07-08 22:30:36 +0200
commitbe533ddc740c77551c714836da08a651b81825b6 (patch)
treea0ec9e5d4d3f14f0b6afaa3d0f8a84e02d9c1cf7 /src/responders.js
parentf1dabb589af4cfaf15d04ff7c399f8a9a2d5223a (diff)
downloadhomestead-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.js6
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(