2010-05-14 15:12:31 -07:00
|
|
|
OpenneoImpressItems::Application.routes.draw do |map|
|
2010-10-18 14:58:45 -07:00
|
|
|
root :to => 'items#index'
|
2010-05-15 10:47:46 -07:00
|
|
|
match '/' => 'items#index', :as => :items
|
2010-06-22 10:00:55 -07:00
|
|
|
match '/index.js' => 'items#index', :format => :js
|
2010-10-10 19:18:42 -07:00
|
|
|
match '/items.json' => 'items#index', :format => :json
|
2010-10-11 15:37:20 -07:00
|
|
|
match '/items/:id' => 'items#show', :as => :item
|
2010-10-03 17:25:02 -07:00
|
|
|
|
|
|
|
match '/item_zone_sets.js' => 'ItemZoneSets#index'
|
2010-10-11 15:37:20 -07:00
|
|
|
match '/item_zone_sets.json' => 'ItemZoneSets#index'
|
2010-05-16 12:33:56 -07:00
|
|
|
|
2010-10-10 19:18:42 -07:00
|
|
|
match '/bodies/:body_id/swf_assets.json' => 'swf_assets#index', :as => :body_swf_assets
|
2010-06-08 15:35:39 -07:00
|
|
|
match '/items/:item_id/swf_assets.json' => 'swf_assets#index', :as => :item_swf_assets
|
|
|
|
match '/items/:item_id/bodies/:body_id/swf_assets.json' => 'swf_assets#index', :as => :item_swf_assets_for_body_id
|
2010-10-03 17:25:02 -07:00
|
|
|
match '/pet_types/:pet_type_id/swf_assets.json' => 'swf_assets#index', :as => :pet_type_swf_assets
|
2010-10-10 19:18:42 -07:00
|
|
|
match '/pet_states/:pet_state_id/swf_assets.json' => 'swf_assets#index', :as => :pet_state_swf_assets
|
2010-05-16 12:33:56 -07:00
|
|
|
match '/species/:species_id/color/:color_id/pet_type.json' => 'pet_types#show'
|
2010-06-26 13:29:23 -07:00
|
|
|
|
2010-10-10 19:18:42 -07:00
|
|
|
resources :items, :only => [:index]
|
|
|
|
resources :pet_attributes, :only => [:index]
|
2010-10-10 11:33:54 -07:00
|
|
|
resources :pets, :only => [:show]
|
|
|
|
|
2010-10-18 14:58:45 -07:00
|
|
|
match '/login' => 'sessions#new', :as => :login
|
|
|
|
match '/logout' => 'sessions#destroy', :as => :logout
|
|
|
|
match '/users/authorize' => 'sessions#create'
|
|
|
|
|
2010-10-10 19:18:42 -07:00
|
|
|
match '/wardrobe' => 'outfits#edit', :as => :wardrobe
|
2010-05-14 15:12:31 -07:00
|
|
|
end
|