Skip to content

Commit a98d3f2

Browse files
committed
revert config.ru
1 parent 1979bd0 commit a98d3f2

File tree

1 file changed

+3
-80
lines changed

1 file changed

+3
-80
lines changed

config.ru

Lines changed: 3 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,4 @@
1-
Holla2::Application.routes.draw do
2-
# The priority is based upon order of creation:
3-
# first created -> highest priority.
1+
# This file is used by Rack-based servers to start the application.
42

5-
# Sample of regular route:
6-
# match 'products/:id' => 'catalog#view'
7-
# Keep in mind you can assign values other than :controller and :action
8-
9-
# Sample of named route:
10-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11-
# This route can be invoked with purchase_url(:id => product.id)
12-
13-
# Sample resource route (maps HTTP verbs to controller actions automatically):
14-
# resources :products
15-
16-
# Sample resource route with options:
17-
# resources :products do
18-
# member do
19-
# get 'short'
20-
# post 'toggle'
21-
# end
22-
#
23-
# collection do
24-
# get 'sold'
25-
# end
26-
# end
27-
28-
# Sample resource route with sub-resources:
29-
# resources :products do
30-
# resources :comments, :sales
31-
# resource :seller
32-
# end
33-
34-
# Sample resource route with more complex sub-resources
35-
# resources :products do
36-
# resources :comments
37-
# resources :sales do
38-
# get 'recent', :on => :collection
39-
# end
40-
# end
41-
42-
# Sample resource route within a namespace:
43-
# namespace :admin do
44-
# # Directs /admin/products/* to Admin::ProductsController
45-
# # (app/controllers/admin/products_controller.rb)
46-
# resources :products
47-
# end
48-
49-
# You can have the root of your site routed with "root"
50-
# just remember to delete public/index.html.
51-
# root :to => "welcome#index"
52-
53-
# See how all your routes lay out with "rake routes"
54-
55-
# This is a legacy wild controller route that's not recommended for RESTful applications.
56-
# Note: This route will make all actions in every controller accessible via GET requests.
57-
# match ':controller(/:action(/:id(.:format)))'
58-
59-
resources :messages do
60-
member do
61-
post "create"
62-
end
63-
end
64-
65-
resources :channels do
66-
member do
67-
post "create"
68-
end
69-
end
70-
71-
resources :assets
72-
73-
resources :app
74-
match "/assets/*:id" => "assets#show"
75-
76-
match "/auth/twitter/callback" => "authorize#create"
77-
match "/auth/failure" => "authorize#failure"
78-
match "/authorize" => redirect("/auth/twitter")
79-
80-
root :to => "app#index"
81-
end
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
run Holla2::Application

0 commit comments

Comments
 (0)