From 1cbbb00e3c6bcf4255fee485de3f2828ff2d1d4c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 8 Mar 2016 10:41:14 -0500 Subject: refactor to_json calls --- src/guff/api-handler.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/guff/api-handler.cr') 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" -- cgit v1.2.3