Commit 235213dc authored by Filipa Lacerda's avatar Filipa Lacerda

Modifies controller to format data to json

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment