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