|
|
|
Bikedb::Application.routes.draw do
|
|
|
|
devise_for :users
|
|
|
|
root to: "static_pages#home"
|
|
|
|
|
|
|
|
resources :bikes do
|
|
|
|
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
|
|
|
|
patch 'mark_picked_up' => 'bikes#mark_picked_up', on: :member
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :volunteers
|
|
|
|
resources :agencies
|
|
|
|
resources :clients do
|
|
|
|
get 'receipt' => 'freecyclery#receipt'
|
|
|
|
end
|
|
|
|
|
|
|
|
get 'closed_applications' => 'freecyclery#closed_applications'
|
|
|
|
get 'ready_for_pickup' => 'freecyclery#ready_for_pickup'
|
|
|
|
get 'available_bikes' => 'freecyclery#available_bikes'
|
|
|
|
get 'bikes_sold_per_year' => 'reports#bikes_sold_per_year'
|
|
|
|
end
|