blob: bd5793e365a5647a4cabd4e826b3fd9e7476ad14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 :characters, only: [:show, :new, :create] do
scope module: :characters do
resources :items, only: [:index]
end
end
end
|