Sha256: f40f63cff62a95acd72d367fe2012efad2882613a5530ae0d2491a999c3fc374

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

Rails.application.routes.draw do
  get "/users/:user_id/checkouts" => redirect("/checkouts?user_id=%{user_id}")
  get "/users/:user_id/reserves" => redirect("/reserves?user_id=%{user_id}")
  get "/users/:user_id/baskets" => redirect("/baskets?user_id=%{user_id}")
  get "/baskets/:basket_id/checked_items" => redirect("/checked_items?basket_id=%{basket_id}")
  get "/baskets/:basket_id/checkins" => redirect("/checkins?basket_id=%{basket_id}")

  resources :use_restrictions
  resources :item_has_use_restrictions
  resources :lending_policies
  resources :circulation_statuses
  resources :baskets
  resources :checkouts, only: :index do
    put :remove_all, on: :collection
  end
  resources :user_checkout_stats
  resources :user_reserve_stats
  resources :manifestation_checkout_stats
  resources :manifestation_reserve_stats
  resources :carrier_type_has_checkout_types
  resources :user_group_has_checkout_types
  resources :checkout_types do
    resources :user_group_has_checkout_types
  end
  resources :user_groups do
    resources :user_group_has_checkout_types
  end
  resources :checkins
  resources :checked_items
  resources :checkouts
  resources :reserves
  resources :items do
    resources :checked_items
    resources :item_has_use_restrictions
    resources :lending_policies
    resources :checkouts
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre41 config/routes.rb
enju_circulation-0.1.0.pre40 config/routes.rb
enju_circulation-0.1.0.pre39 config/routes.rb
enju_circulation-0.1.0.pre38 config/routes.rb