mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
22 lines
458 B
Ruby
22 lines
458 B
Ruby
Rails.application.routes.draw do
|
|
get 'export', to: 'export#index'
|
|
get 'export/download', to: 'export#download'
|
|
resources :imports
|
|
resources :stats, only: :index do
|
|
collection do
|
|
post :update
|
|
end
|
|
end
|
|
get 'stats/:year', to: 'stats#show', constraints: { year: /\d{4}/ }
|
|
|
|
root to: 'home#index'
|
|
devise_for :users
|
|
|
|
get 'points', to: 'points#index'
|
|
|
|
namespace :api do
|
|
namespace :v1 do
|
|
resources :points
|
|
end
|
|
end
|
|
end
|