fix broken json returns

This commit is contained in:
Paul Liverman III 2018-09-09 21:43:21 -07:00
parent 9d5495b4ab
commit 0c03891fe4

View File

@ -4,7 +4,9 @@ import max from math
api = (tab) ->
json_params capture_errors {
respond_to(tab),
=>
result = respond_to(tab)
return json: result,
on_error: =>
status = 400
errors = {}