You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
937 B
29 lines
937 B
require 'sidekiq/web'
|
|
|
|
Bikedb::Application.routes.draw do
|
|
devise_for :users
|
|
root to: "static_pages#home"
|
|
|
|
mount Sidekiq::Web => '/sidekiq'
|
|
|
|
resources :bikes do
|
|
get 'search' => 'bikes#search', on: :collection
|
|
get 'print_select' => 'bikes#print_select', on: :collection
|
|
get 'print_labels' => 'bikes#print_labels', on: :collection
|
|
get 'freecyclery_pickup' => 'bikes#freecyclery_pickup', on: :collection
|
|
patch 'mark_as_sold' => 'bikes#mark_as_sold', on: :member
|
|
end
|
|
|
|
resources :volunteers
|
|
resources :agencies
|
|
resources :clients do
|
|
get 'receipt' => 'freecyclery#receipt'
|
|
get 'print_select' => 'clients#print_select', on: :collection
|
|
get 'print_receipts' => 'clients#print_receipts', on: :collection
|
|
|
|
end
|
|
|
|
get 'closed_applications' => 'freecyclery#closed_applications'
|
|
get 'available_bikes' => 'freecyclery#available_bikes'
|
|
get 'bikes_sold_per_year' => 'reports#bikes_sold_per_year'
|
|
end
|
|
|