impress/config/routes.rb

73 lines
2.7 KiB
Ruby
Raw Normal View History

2010-05-14 15:12:31 -07:00
OpenneoImpressItems::Application.routes.draw do |map|
2011-07-30 23:48:16 -07:00
get "petpages/new"
get "closet_lists/new"
get "closet_lists/create"
2010-11-05 15:45:05 -07:00
root :to => 'outfits#new'
devise_for :users
match '/item_zone_sets.json' => 'ItemZoneSets#index'
2010-10-10 19:18:42 -07:00
match '/bodies/:body_id/swf_assets.json' => 'swf_assets#index', :as => :body_swf_assets
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
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'
2011-01-27 13:35:46 -08:00
match '/roulette' => 'roulettes#new', :as => :roulette
2010-11-05 15:45:05 -07:00
resources :contributions, :only => [:index]
2010-11-06 10:07:12 -07:00
resources :items, :only => [:index, :show] do
2010-11-05 15:45:05 -07:00
collection do
get :needed
end
end
resources :outfits, :only => [:show, :create, :update, :destroy]
2010-10-10 19:18:42 -07:00
resources :pet_attributes, :only => [:index]
resources :swf_assets, :only => [:index, :show]
2011-07-12 17:51:43 -07:00
resources :closet_pages, :only => [:new, :create], :path => 'closet/pages'
match '/users/current-user/outfits' => 'outfits#index', :as => :current_user_outfits
2010-11-05 15:45:05 -07:00
match '/pets/load' => 'pets#load', :method => :post, :as => :load_pet
match '/pets/bulk' => 'pets#bulk', :as => :bulk_pets
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'
2011-07-20 12:16:22 -07:00
resources :users, :path => 'user', :only => [:update] do
2010-11-05 15:45:05 -07:00
resources :contributions, :only => [:index]
2011-07-30 23:48:16 -07:00
resources :closet_hangers, :only => [:index], :path => 'closet' do
collection do
get :petpage
end
end
2011-07-29 07:52:04 -07:00
resources :closet_lists, :only => [:new, :create, :edit, :update, :destroy], :path => 'closet/lists'
resources :items, :only => [] do
resource :closet_hanger, :only => [:create, :update, :destroy]
end
2010-11-05 15:45:05 -07:00
end
2011-07-12 17:51:43 -07:00
2011-07-31 15:45:53 -07:00
match 'users/current-user/closet' => 'closet_hangers#index', :as => :current_user_items
2010-11-05 15:45:05 -07:00
match 'users/top-contributors' => 'users#top_contributors', :as => :top_contributors
match 'users/top_contributors' => redirect('/users/top-contributors')
2010-10-10 19:18:42 -07:00
match '/wardrobe' => 'outfits#edit', :as => :wardrobe
2011-06-28 10:24:40 -07:00
match '/donate' => 'static#donate', :as => :donate
2011-07-02 14:09:42 -07:00
match 'image-mode' => 'static#image_mode', :as => :image_mode
2010-11-05 15:55:27 -07:00
match '/terms' => 'static#terms', :as => :terms
2011-05-20 17:49:48 -07:00
match '/sitemap.xml' => 'sitemap#index', :as => :sitemap, :format => :xml
match '/robots.txt' => 'sitemap#robots', :as => :robots, :format => :text
2010-05-14 15:12:31 -07:00
end