menu, table,rooms, orders structure
This commit is contained in:
29
app/controllers/api/restaurant/menu_controller.rb
Normal file
29
app/controllers/api/restaurant/menu_controller.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
class Api::Restaurant::MenuController < ActionController::API
|
||||
before :authenticate_token
|
||||
|
||||
#Description
|
||||
# Pull the default menu details and also other available (active) menus
|
||||
# Input Params - order_id
|
||||
def index
|
||||
menu_detail()
|
||||
end
|
||||
|
||||
#Description
|
||||
# This API show current order details
|
||||
# Input Params - menu_id
|
||||
def show
|
||||
menu_detail(params[:menu_id])
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
def menu_detail
|
||||
if (menu_id)
|
||||
#Pull this menu
|
||||
else
|
||||
#Pull Default menu
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user