dawarich/config/routes.rb

43 lines
940 B
Ruby
Raw Normal View History

2024-05-18 06:13:29 -04:00
# frozen_string_literal: true
2024-05-23 14:12:23 -04:00
require 'sidekiq/web'
Rails.application.routes.draw do
mount Rswag::Api::Engine => '/api-docs'
mount Rswag::Ui::Engine => '/api-docs'
2024-05-23 14:12:23 -04:00
mount Sidekiq::Web => '/sidekiq'
2024-05-18 06:13:29 -04:00
get 'settings/theme', to: 'settings#theme'
2024-03-23 16:46:18 -04:00
get 'export', to: 'export#index'
get 'export/download', to: 'export#download'
2024-03-15 18:27:31 -04:00
resources :imports
2024-05-23 14:12:23 -04:00
resources :points, only: %i[index] do
collection do
delete :bulk_destroy
end
end
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
post 'settings/generate_api_key', to: 'devise/api_keys#create', as: :generate_api_key
2024-05-23 14:12:23 -04:00
get 'map', to: 'map#index'
2024-03-15 18:27:31 -04:00
namespace :api do
namespace :v1 do
resources :points
2024-04-06 13:09:38 -04:00
namespace :overland do
resources :batches, only: :create
end
2024-03-15 18:27:31 -04:00
end
end
end