Modifies controller to format data to json

This commit is contained in:
Filipa Lacerda 2016-10-14 13:14:41 +01:00
parent 4df7c9edef
commit 235213dc68
1 changed files with 7 additions and 0 deletions

View File

@ -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