Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class API::V1::ReceptionController < API::V1::APIController
- before_filter :ensure_document_exists
- def produto
- jid = ProdutoWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- def cliente
- jid = ClienteFornecedorWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- def nota_fiscal
- jid = NotaFiscalWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- def venda
- jid = VendaWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- def reducaoz
- jid = ReducaoZWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- def impressora_fiscal
- jid = ImpressoraFiscalWorker.perform_async params[:document]
- render json: {jid: jid}, :status => 200
- end
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement