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

@@ -1,9 +1,10 @@
Rails.application.routes.draw do
namespace :api do
namespace :v1 do
namespace :v1, defaults: { format: :json } do
resources :parks, only: %i[index show], param: :code do
resources :alerts, only: %i[index], module: :parks
end
resources :stats, only: %i[index]
end
end
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html