summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-23 17:06:34 -0400
committerDavid Gay <david@davidgay.org>2021-05-23 17:06:34 -0400
commitaba212e13062c43a1192ef885b05145ac1cc9fe7 (patch)
tree61e3850ec0c86913a7e2d42076bcd73aa59f480a /config
parent44facc2e567eb3c045ce082428f42276e45b0202 (diff)
Bazaar with buy orders, sell orders, and order cancellation
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 5 insertions, 2 deletions
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"