From be533ddc740c77551c714836da08a651b81825b6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 8 Jul 2017 22:30:36 +0200 Subject: refactor: assign responders to actions via front controller --- src/responders.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/responders.js') 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( -- cgit 1.4.1