backend: res_body -> body

This commit is contained in:
0x1eef 2023-12-11 08:57:42 -03:00
parent bda4f9fa83
commit b75e14ff37

View file

@ -1,12 +1,12 @@
class Twenty::Servlet::Connections < Twenty::Servlet
def do_GET(req, res)
write res,
[200, {'content-type' => 'application/json'}, res_body]
[200, {'content-type' => 'application/json'}, body]
end
private
def res_body
def body
JSON.dump database.connections.map { Ryo.table_of(_1,recursive: true) }
end
end