backend: res_body -> body
This commit is contained in:
parent
bda4f9fa83
commit
b75e14ff37
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
class Twenty::Servlet::Connections < Twenty::Servlet
|
class Twenty::Servlet::Connections < Twenty::Servlet
|
||||||
def do_GET(req, res)
|
def do_GET(req, res)
|
||||||
write res,
|
write res,
|
||||||
[200, {'content-type' => 'application/json'}, res_body]
|
[200, {'content-type' => 'application/json'}, body]
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def res_body
|
def body
|
||||||
JSON.dump database.connections.map { Ryo.table_of(_1,recursive: true) }
|
JSON.dump database.connections.map { Ryo.table_of(_1,recursive: true) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue