changes
[appoyo.git] / config / routes.rb
blob6a389f0563d400d15d7034e6a529483d9c6524ea
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'
6   
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.start '/start', :controller => 'fbpage', :action => 'start'   
16   #map.processcallback '/processcallback', :controller => 'users', :action => 'processcallback'
17   #map.localcallback '/localcallback', :controller => 'users', :action => 'localcallback'
18   
19  # map.permission '/permission', :controller => 'users', :action => 'permission'
20   
21   
22   #map.publish_game_result '/publish_game_result', :controller => 'users', :action => 'publish_game_result'
24   #map.statistic_to_csv '/statistic_to_csv', :controller => 'users', :action => 'statistic_to_csv'
25   
26   #map.api '/api', :controller => 'users', :action => 'api'
29   #map.fakejawaker '/fakejawaker', :controller => 'users', :action => 'fakejawaker'
30   map.connect '/connect', :controller => 'users', :action => 'home'
31   
32   #map.update '/update', :controller => 'friend', :action => 'update'
33   map.stat '/stat', :controller => 'users', :action => 'stat'
34   #map.signout '/signout', :controller => 'users', :action => 'sign_out'
36   #map.auth '/auth', :controller => 'users', :action => 'auth'
37   
38   map.resources :users, :collection => {:link_user_accounts => :get}
39   map.resource :session
40    
41   
42   # The priority is based upon order of creation: first created -> highest priority.
44   # Sample of regular route:
45   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
46   # Keep in mind you can assign values other than :controller and :action
48   # Sample of named route:
49   #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
50   # This route can be invoked with purchase_url(:id => product.id)
52   # Sample resource route (maps HTTP verbs to controller actions automatically):
53   #   map.resources :products
55   # Sample resource route with options:
56   #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
58   # Sample resource route with sub-resources:
59   #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
60   
61   # Sample resource route with more complex sub-resources
62   #   map.resources :products do |products|
63   #     products.resources :comments
64   #     products.resources :sales, :collection => { :recent => :get }
65   #   end
67   # Sample resource route within a namespace:
68   #   map.namespace :admin do |admin|
69   #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
70   #     admin.resources :products
71   #   end
73   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
74   # map.root :controller => "welcome"
76   # See how all your routes lay out with "rake routes"
78   # Install the default routes as the lowest priority.
79   # Note: These default routes make all actions in every controller accessible via GET requests. You should
80   # consider removing the them or commenting them out if you're using named routes and resources.
82   
83   map.root :controller => "fbpage", :action => "start"
84   map.connect ':controller/:action/:id'
85   map.connect ':controller/:action/:id.:format'
86 end