Include hosts when returning services
parent
fd4032928e
commit
b0012d6f36
|
@ -24,7 +24,8 @@ module ServiceServlet
|
||||||
begin
|
begin
|
||||||
opts = params.symbolize_keys
|
opts = params.symbolize_keys
|
||||||
data = get_db.services(opts)
|
data = get_db.services(opts)
|
||||||
set_json_response(data)
|
includes = [:host]
|
||||||
|
set_json_response(data, includes)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
set_error_on_response(e)
|
set_error_on_response(e)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue