This commit is contained in:
Albert Yi
2018-05-24 10:18:16 -07:00
parent bf9e5123a9
commit 3f40929ca1

View File

@@ -23,7 +23,7 @@ class PoolsController < ApplicationController
render :xml => @pools.to_xml(:root => "pools")
end
format.json do
render json: @pool.to_json
render json: @pools.to_json
expires_in params[:expiry].to_i.days if params[:expiry]
end
end