Class: Api::StatisticsController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/meerstats/api/statistics_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
# File 'app/controllers/meerstats/api/statistics_controller.rb', line 3

def show
  render json: { count: Meerstats.statistics_for(params[:id], days_ago: params[:days_ago] || 1) }
end