Add stats endpoint

This commit is contained in:
2025-10-08 09:33:16 -07:00
parent fcbc513676
commit b3d96e07b1
6 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
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