Conceptual architectural change for CLI user app

This commit is contained in:
2015-09-07 19:10:54 +02:00
parent 4ef7ecba41
commit 1caa488524
15 changed files with 163 additions and 140 deletions
+14 -7
View File
@@ -57,18 +57,18 @@ Qwaiter::Application.routes.draw do
#get '/user' => 'user#index'
#get '/user/active_list(.:format)' => 'user#active_list', as: :user_active_list
#get '/user/list_info' => 'user#list_info', as: :user_list_info, via: [:get, :options]
post '/user/needs_help' => 'user#needs_help', as: :user_needs_help
post '/user/list_needs_payment' => 'user#list_needs_payment', as: :user_list_needs_payment
#post '/user/needs_help' => 'user#needs_help', as: :user_needs_help
#post '/user/list_needs_payment' => 'user#list_needs_payment', as: :user_list_needs_payment
#post '/user/create_list' => 'user#create_list', as: :user_create_list
#get '/user/list_products' => 'user#list_products', as: :user_list_products
#get '/user/list_products_for_table' => 'user#list_products_for_table', as: :user_list_products_for_table
#get '/user/list_history' => 'user#list_history', as: :user_list_history
#get '/user/history_list' => 'user#history_list', as: :user_history_list
#post '/user/order_selected_products' => 'user#order_selected_products', as: :user_order_selected_products
post '/user/move_table' => 'user#move_table', as: :user_move_table
get '/user/table_info' => 'user#table_info', as: :user_table_info
#post '/user/move_table' => 'user#move_table', as: :user_move_table
#get '/user/table_info' => 'user#table_info', as: :user_table_info
# get '/user/join_occupied_table' => 'user#join_occupied_table', as: :user_join_occupied_table
post '/user/join_occupied_table' => 'user#request_to_join_occupied_table'
#post '/user/join_occupied_table' => 'user#request_to_join_occupied_table'
post '/user/reject_join_request' => 'user#reject_join_request'
post '/user/approve_join_request' => 'user#approve_join_request'
@@ -86,13 +86,20 @@ Qwaiter::Application.routes.draw do
end
member do
get :table
post :needs_payment
post :move_to_table
post :order_products
end
resources :orders, only: [:index]
end
resources :orders, only: [:create]
resources :tables, only: [:show] do
#resources :orders, only: [:create]
resources :tables do
member do
post :needs_help
post :join
post :order_products
get :status_info
get :supplier
end
end