Skip to content

Commit

Permalink
rearrange routes so that /item_zone_sets.js is not considered an item id
Browse files Browse the repository at this point in the history
  • Loading branch information
matchu committed Oct 4, 2010
1 parent 1952bcb commit 8b7b400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
OpenneoImpressItems::Application.routes.draw do |map|
match '/' => 'items#index', :as => :items
match '/index.js' => 'items#index', :format => :js
match '/:id' => 'items#show', :as => :item

match '/item_zone_sets.js' => 'ItemZoneSets#index'

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

match '/pet_types/:pet_type_id/swf_assets.json' => 'swf_assets#index', :as => :pet_type_swf_assets
match '/species/:species_id/color/:color_id/pet_type.json' => 'pet_types#show'

match '/item_zone_sets.js' => 'ItemZoneSets#index'
match '/:id' => 'items#show', :as => :item
end

0 comments on commit 8b7b400

Please sign in to comment.