aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api-handler.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 10:41:14 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 10:41:14 -0500
commit1cbbb00e3c6bcf4255fee485de3f2828ff2d1d4c (patch)
treef6527eaa77f8f8a7696384f66b81d5fdcea3988a /src/guff/api-handler.cr
parent2c60a34cbe95d34950977e59d9316a1885b4fd6f (diff)
downloadold-guff-1cbbb00e3c6bcf4255fee485de3f2828ff2d1d4c.tar.bz2
old-guff-1cbbb00e3c6bcf4255fee485de3f2828ff2d1d4c.zip
refactor to_json calls
Diffstat (limited to 'src/guff/api-handler.cr')
-rw-r--r--src/guff/api-handler.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guff/api-handler.cr b/src/guff/api-handler.cr
index 4d4a996..274e137 100644
--- a/src/guff/api-handler.cr
+++ b/src/guff/api-handler.cr
@@ -13,7 +13,7 @@ private macro define_method_calls(hash)
context.request.query_params,
"{{ namespace.id }}",
"{{ method.id }}"
- ))
+ )).to_json
{% end %}
else
raise "unknown method"