dawarich/config/routes.rb

22 lines
411 B
Ruby
Raw Normal View History

Rails.application.routes.draw do
2024-03-23 16:46:18 -04:00
get 'export', to: 'export#index'
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
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'
devise_for :users
2024-03-15 18:27:31 -04:00
get 'points', to: 'points#index'
namespace :api do
namespace :v1 do
resources :points
end
end
end