Skip to content

Commit

Permalink
Added maintenance rule to routes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Wojtulewicz committed Nov 17, 2015
1 parent a69386d commit 79328df
Showing 1 changed file with 5 additions and 55 deletions.
60 changes: 5 additions & 55 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,60 +1,10 @@
# coding: utf-8
Roguesim::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.

# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action

# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)

# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products

# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end

# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end

# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end

# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end

# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => "welcome#index"

# See how all your routes lay out with "rake routes"

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
# enable this rule and copy public/maintenance.html to public/index.html
# to turn on maintenance mode. this will override all of the other rules
# and redirect all requests to a static text page.
#match '*foo', :to => redirect('/maintenance.html')

match "/:region/:realm/:name", :to => "characters#show", :as => :character, :region => /us|eu|kr|tw|cn|sea/i
match "/:region/:realm/:name/refresh", :to => "characters#refresh", :as => :refresh_character, :region => /us|eu|kr|tw|cn|sea/i
Expand Down

0 comments on commit 79328df

Please sign in to comment.