Add stats endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user