From 73744a9c6840fb0ba6f285ca81f9fba75ec22d5f Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 4 May 2021 17:55:28 -0400 Subject: Initial draft of timer setup, with results outputting and items being awarded --- config/routes.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 6442ec2..9e6fb82 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,6 +11,10 @@ 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 :characters, only: [:show, :new, :create] do scope module: :characters do resources :items, only: [:index] @@ -18,4 +22,6 @@ Rails.application.routes.draw do end resources :locations, only: [:index, :show] + + post "/finish_activity", to: "game#finish_activity" end -- cgit v1.2.3