Add new stat

This commit is contained in:
2025-10-08 09:50:33 -07:00
parent f5009780aa
commit bf9f20a13c
4 changed files with 17 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ module Api::V1
def index
@park_count = Park.count
@alert_count = Alert.count
@state_with_most_parks = ParksByState.group(:state).count.max
@park_with_most_alerts = Alert.group(:park_code).count.max
end
end