From aba212e13062c43a1192ef885b05145ac1cc9fe7 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 23 May 2021 17:06:34 -0400 Subject: Bazaar with buy orders, sell orders, and order cancellation --- config/routes.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index f9c1f7b..4eee2a0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,7 +12,7 @@ Rails.application.routes.draw do end resources :chat_messages, only: [:index, :create] - + resources :locations, only: [:index, :show] resources :activities, only: [:show] resources :characters, only: [:show, :new, :create] do @@ -28,7 +28,10 @@ Rails.application.routes.draw do end end - resources :locations, only: [:index, :show] + get "/bazaar", to: "bazaar#index" + post "/bazaar", to: "bazaar#create_order", as: :bazaar_order + post "/bazaar/accept/:id", to: "bazaar#accept_offer", as: :bazzar_accept_offer + delete "/bazaar/cancel/:id", to: "bazaar#cancel_offer", as: :bazzar_cancel_offer post "/start_activity", to: "activities#start" post "/finish_activity", to: "game#finish_activity" -- cgit v1.2.3