10 lines
217 B
Ruby
10 lines
217 B
Ruby
module Api::V1
|
|
class StatsController < BaseController
|
|
def index
|
|
@park_count = Park.count
|
|
@alert_count = Alert.count
|
|
@park_with_most_alerts = Alert.group(:park_code).count.max
|
|
end
|
|
end
|
|
end
|