-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathroutes.rb
82 lines (64 loc) · 1.78 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Poesearch::Application.routes.draw do
devise_for :users, controllers: { registrations: 'registrations', sessions: 'sessions' }
root to: "searches#new"
resources :users, except: [:index] do
member do
post :generate_token
get :link_character
post :validate_account
end
collection do
get :update_layout
end
resource :account
end
resources :searches, except: [:edit] do
collection do
get :favorite, as: :favorite
end
end
resources :searches, except: [:edit]
[:weapons, :armours, :misc].each do |type|
resources :"#{type.to_s.singularize}_searches", except: [:edit]
end
resources :similar_searches
resources :items, only: [:index, :show, :destroy] do
member do
post :add_to_cart
delete :remove_from_cart
post :verify
end
end
resource :shopping_cart
resources :authentications, only: [:create, :destroy]
resources :messages
resources :players do
member do
put :mark_online
put :mark_offline
end
end
resources :accounts
namespace :admin do
root to: "admin#index"
resources :searches
resources :broadcasts
resources :messages, only: [:index, :show]
resources :scrawls
end
resources :exile_searches, path: "/exiles/search"
resources :exiles do
member do
put :vote_up
end
collection do
post :load_votes
end
end
resources :forum_threads, path: "/threads", only: [:show]
get "/feedback", to: "feedback#index", as: :feedback
get "/about/item_prices", to: "about#item_prices", as: :item_prices
get "/about/search_by_price", to: "about#search_by_price", as: :search_by_price
get "/about/faq", to: "about#faq", as: :faq
match '/auth/:provider/callback' => 'authentications#create', via: :get
end