backend: update connections.rb
This commit is contained in:
parent
b2519f033d
commit
c5d6e74320
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue