fix broken json returns
This commit is contained in:
parent
9d5495b4ab
commit
0c03891fe4
@ -4,7 +4,9 @@ import max from math
|
|||||||
|
|
||||||
api = (tab) ->
|
api = (tab) ->
|
||||||
json_params capture_errors {
|
json_params capture_errors {
|
||||||
respond_to(tab),
|
=>
|
||||||
|
result = respond_to(tab)
|
||||||
|
return json: result,
|
||||||
on_error: =>
|
on_error: =>
|
||||||
status = 400
|
status = 400
|
||||||
errors = {}
|
errors = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user