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

Modifies controller to format data to json

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