Project

General

Profile

Download (453 Bytes) Statistics
| Branch: | Tag: | Revision:
module Api
module V2

class DashboardController < V2::BaseController

param :search, String, :desc => "filter results", :required => false
api :GET, "/dashboard/", "Get Dashboard results"

def index
status = Dashboard.status(params[:search])
respond_to do |format|
format.yaml { render :text => status.to_yaml }
format.json { render :json => status }
end
end

end

end
end
(10-10/46)