2022-04-06 14:46:10 -04:00
|
|
|
Rails.application.routes.draw do
|
2024-03-23 16:46:18 -04:00
|
|
|
get 'export', to: 'export#index'
|
2024-04-04 11:29:11 -04:00
|
|
|
get 'export/download', to: 'export#download'
|
2024-04-04 14:14:11 -04:00
|
|
|
|
2024-03-15 18:27:31 -04:00
|
|
|
resources :imports
|
2024-03-24 14:25:33 -04:00
|
|
|
resources :stats, only: :index do
|
|
|
|
|
collection do
|
|
|
|
|
post :update
|
|
|
|
|
end
|
|
|
|
|
end
|
2024-03-24 14:46:55 -04:00
|
|
|
get 'stats/:year', to: 'stats#show', constraints: { year: /\d{4}/ }
|
2024-03-23 15:29:55 -04:00
|
|
|
|
2023-10-21 06:43:31 -04:00
|
|
|
root to: 'home#index'
|
2022-04-06 14:46:10 -04:00
|
|
|
devise_for :users
|
2024-03-15 18:27:31 -04:00
|
|
|
|
2024-04-04 14:14:11 -04:00
|
|
|
post 'settings/generate_api_key', to: 'devise/api_keys#create', as: :generate_api_key
|
|
|
|
|
|
2024-03-15 18:27:31 -04:00
|
|
|
get 'points', to: 'points#index'
|
|
|
|
|
|
|
|
|
|
namespace :api do
|
|
|
|
|
namespace :v1 do
|
|
|
|
|
resources :points
|
|
|
|
|
end
|
|
|
|
|
end
|
2022-04-06 14:46:10 -04:00
|
|
|
end
|