From 5afdcd12f04102b5cf5d5a310981bc576a992119 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 19 May 2021 21:16:15 -0400 Subject: Implement crafting from the hearth forge --- config/routes.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 21230a8..f3096f7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,9 +11,7 @@ Rails.application.routes.draw do put "users", to: "devise/registrations#update", as: "user_registration" end - resources :activities, only: [:show] do - post "start", on: :member - end + resources :activities, only: [:show] resources :characters, only: [:show, :new, :create] do scope module: :characters do @@ -24,5 +22,6 @@ Rails.application.routes.draw do resources :locations, only: [:index, :show] + post "/start_activity", to: "activities#start" post "/finish_activity", to: "game#finish_activity" end -- cgit v1.2.3