From 38f3a39221869483e3468e9f4d8cab5450a70f89 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 22 May 2021 15:39:16 -0400 Subject: Equiping and unequiping items --- config/routes.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') 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 -- cgit v1.2.3