sync data record
This commit is contained in:
10
app/controllers/api/sync_controller.rb
Normal file
10
app/controllers/api/sync_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Api::SyncController < Api::ApiController
|
||||
|
||||
def sync_data
|
||||
# Here comes to save the sync records.
|
||||
Order.sync_order_records(params[:orders])
|
||||
OrderItem.sync_order_item_records(params[:order_items])
|
||||
|
||||
return true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user