1 ActionController::Routing::Routes.draw do |map|
2 #a map.logout '/logout', :controller => 'sessions', :action => 'destroy'
3 # map.login '/login', :controller => 'sessions', :action => 'new'
4 # map.register '/register', :controller => 'users', :action => 'create'
5 # map.signup '/signup', :controller => 'users', :action => 'new'
7 # map.invitefriend '/invitefriend', :controller => 'users', :action => 'invitefriend'
8 # map.facebookapp '/facebookapp', :controller => 'users', :action => 'facebookapp'
9 # map.fbstart '/start', :controller => 'page', :action => 'start'
10 map.business '/business', :controller => 'fbpage', :action => 'business'
11 map.privat '/privat', :controller => 'fbpage', :action => 'privat'
12 map.my '/my', :controller => 'fbpage', :action => 'my'
13 map.help '/help', :controller => 'fbpage', :action => 'help'
14 map.gallery '/gallery', :controller => 'fbpage', :action => 'gallery'
15 #map.processcallback '/processcallback', :controller => 'users', :action => 'processcallback'
16 #map.localcallback '/localcallback', :controller => 'users', :action => 'localcallback'
18 # map.permission '/permission', :controller => 'users', :action => 'permission'
21 #map.publish_game_result '/publish_game_result', :controller => 'users', :action => 'publish_game_result'
23 #map.statistic_to_csv '/statistic_to_csv', :controller => 'users', :action => 'statistic_to_csv'
25 #map.api '/api', :controller => 'users', :action => 'api'
28 #map.fakejawaker '/fakejawaker', :controller => 'users', :action => 'fakejawaker'
29 map.connect '/connect', :controller => 'users', :action => 'home'
31 #map.update '/update', :controller => 'friend', :action => 'update'
32 map.stat '/stat', :controller => 'users', :action => 'stat'
33 #map.signout '/signout', :controller => 'users', :action => 'sign_out'
35 #map.auth '/auth', :controller => 'users', :action => 'auth'
37 map.resources :users, :collection => {:link_user_accounts => :get}
41 # The priority is based upon order of creation: first created -> highest priority.
43 # Sample of regular route:
44 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
45 # Keep in mind you can assign values other than :controller and :action
47 # Sample of named route:
48 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
49 # This route can be invoked with purchase_url(:id => product.id)
51 # Sample resource route (maps HTTP verbs to controller actions automatically):
52 # map.resources :products
54 # Sample resource route with options:
55 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
57 # Sample resource route with sub-resources:
58 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
60 # Sample resource route with more complex sub-resources
61 # map.resources :products do |products|
62 # products.resources :comments
63 # products.resources :sales, :collection => { :recent => :get }
66 # Sample resource route within a namespace:
67 # map.namespace :admin do |admin|
68 # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
69 # admin.resources :products
72 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
73 # map.root :controller => "welcome"
75 # See how all your routes lay out with "rake routes"
77 # Install the default routes as the lowest priority.
78 # Note: These default routes make all actions in every controller accessible via GET requests. You should
79 # consider removing the them or commenting them out if you're using named routes and resources.
82 map.root :controller => "fbpage", :action => "start"
83 map.connect ':controller/:action/:id'
84 map.connect ':controller/:action/:id.:format'