diff options
author | David Gay <david@davidgay.org> | 2021-05-22 15:39:16 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-22 15:39:16 -0400 |
commit | 38f3a39221869483e3468e9f4d8cab5450a70f89 (patch) | |
tree | ef831c35d61e05b46c356d39e30ecc6d6f7353b1 /config | |
parent | 88bd4f77db3a4372c118a9faef613615db66bc52 (diff) |
Equiping and unequiping items
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index e29f9e9..f9c1f7b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,7 +17,10 @@ Rails.application.routes.draw do resources :characters, only: [:show, :new, :create] do scope module: :characters do - resources :items, only: [:index] + post "/items/unequip/:slot", to: "items#unequip", as: :item_unequip + resources :items, only: [:index] do + post "/equip", to: "items#equip" + end resources :titles, only: [:index] do post "/activate", to: "titles#activate" end |