提交 235213dc 编写于 作者: F Filipa Lacerda

Modifies controller to format data to json

上级 4df7c9ed
...@@ -15,6 +15,13 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -15,6 +15,13 @@ class Projects::EnvironmentsController < Projects::ApplicationController
else else
@all_environments.available @all_environments.available
end end
respond_to do |format|
format.html
format.json do
render json: @environments
end
end
end end
def show def show
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册