mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
29 lines
630 B
Ruby
29 lines
630 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
|
|
|
|
post 'settings/generate_api_key', to: 'devise/api_keys#create', as: :generate_api_key
|
|
|
|
get 'points', to: 'points#index'
|
|
|
|
namespace :api do
|
|
namespace :v1 do
|
|
resources :points
|
|
|
|
namespace :overland do
|
|
resources :batches, only: :create
|
|
end
|
|
end
|
|
end
|
|
end
|