backend: update connections.rb

This commit is contained in:
0x1eef 2023-12-22 22:17:01 -03:00
parent b2519f033d
commit c5d6e74320

View file

@ -1,13 +1,12 @@
class Twenty::Servlet::Connections < Twenty::Servlet
##
# GET /servlet/connections
def do_GET(req, res)
case req.path_info
when ""
# GET /
Response.new(res)
.set_status(200)
.set_body(connections: Twenty::Connection.all)
ok(res, connections: Twenty::Connection.all)
else
Response.new(res).not_found
not_found(res)
end
end
end