summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-02 22:38:32 -0400
committerDavid Gay <david@davidgay.org>2021-05-02 22:38:32 -0400
commit1b2de86007508ba86c6c9cb99fbdcac178045131 (patch)
treea007fc55acd2b54b5db108e3580928a9a006d71e /config/routes.rb
parent1d5083ddf7f2b285e63bb8019d38199e862fa1d8 (diff)
Character items and inventory, with ability to add and remove items
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e048a85..bd5793e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -11,5 +11,9 @@ Rails.application.routes.draw do
put "users", to: "devise/registrations#update", as: "user_registration"
end
- resources :characters, only: [:show, :new, :create]
+ resources :characters, only: [:show, :new, :create] do
+ scope module: :characters do
+ resources :items, only: [:index]
+ end
+ end
end