Modifies controller to format data to json
This commit is contained in:
parent
4df7c9edef
commit
235213dc68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue