give some love to the waiter app

This commit is contained in:
2016-06-02 16:38:09 +02:00
parent e4461d3d29
commit ca8cc80b22
19 changed files with 124 additions and 26 deletions
+2 -1
View File
@@ -41,11 +41,12 @@ Qwaiter::Application.routes.draw do
#WAITER
#get '/waiter' => 'waiter#index' #, controller: 'waiter', action: 'index'
#get '/waiter/sections' => 'waiter#sections'
get '/waiter/product_categories' => 'waiter#product_categories'
#get '/waiter/product_categories' => 'waiter#product_categories'
post '/waiter/order_products' => 'waiter#order_products', as: :order_products_waiter
namespace :waiter do
resources :sections
resources :suppliers
resources :product_categories, only: %i[index]
root to: 'dashboard#index'
get '/*rest' => redirect('/waiter') # Ember app refresh