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
|
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
resources :chat_messages, only: [:index, :create]
resources :activities, only: [:show]
resources :characters, only: [:show, :new, :create] do
scope module: :characters do
resources :items, only: [:index]
get "/hearth", to: "hearth#index"
end
end
resources :locations, only: [:index, :show]
post "/start_activity", to: "activities#start"
post "/finish_activity", to: "game#finish_activity"
end
|