update call waiter
This commit is contained in:
12
app/controllers/api/call_waiters_controller.rb
Normal file
12
app/controllers/api/call_waiters_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class Api::CallWaitersController < ActionController::API
|
||||
|
||||
#List all active customers by name
|
||||
def index
|
||||
@table_id = params[:dining_id]
|
||||
@time = params[:time]
|
||||
@table = DiningFacility.find(@table_id)
|
||||
CallWaiterJob.perform_later(@table,@time)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user