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
|
Rails.application.routes.draw do
root to: "home#index", as: :home_index
devise_scope :user do
get "login", to: "devise/sessions#new"
get "logout", to: "devise/sessions#destroy"
end
devise_for :users, skip: [:registrations]
as :user do
get "users/edit", to: "devise/registrations#edit", as: "edit_user_registration"
put "users", to: "devise/registrations#update", as: "user_registration"
end
get :look, to: "look#look"
resources :chat_messages, only: [:index, :create] do
collection do
get :list
end
end
resources :activities, only: [:index, :show] do
get :costs_and_requirements, on: :member
end
resources :items, only: [:index, :show]
resources :messages, only: [:index, :destroy]
resources :hearth_amenities, only: [] do
post "/use", to: "hearth_amenities#use"
end
resources :characters, only: [:show, :new, :create] do
post "/combat_styles", to: "characters#set_combat_styles", on: :member
scope module: :characters do
get "/rankings", to: "rankings#index"
get :bestiary, to: "bestiary#index"
post "/items/unequip/:slot", to: "items#unequip", as: :item_unequip
resources :item_infixes, only: [:create, :destroy]
resources :items, only: [:index] do
post "/equip", to: "items#equip"
post "/use", to: "items#use"
end
resources :skills, only: [:index]
resources :spells, only: [:index]
resources :titles, only: [:index] do
post "/activate", to: "titles#activate"
end
get "/hearth", to: "hearth#index"
get "/hearth/loamspire", to: "hearth/hearth_plantings#index"
end
end
get "/leaderboard", to: "leaderboard#index"
get "/bazaar", to: "bazaar#index"
post "/bazaar", to: "bazaar#create_order", as: :bazaar_order
post "/bazaar/accept/:id", to: "bazaar#accept_offer", as: :bazzar_accept_offer
delete "/bazaar/cancel/:id", to: "bazaar#cancel_offer", as: :bazzar_cancel_offer
post "/start_activity", to: "activities#start"
post "/stop_activity", to: "game#stop_activity"
post "/finish_activity", to: "game#finish_activity"
post "/toggle_resting", to: "game#toggle_resting"
end
|