add buttons for kitchen y bar
This commit is contained in:
parent
4b77506c4e
commit
539709c441
16
api.py
16
api.py
@ -19,3 +19,19 @@ def write_to_file(file_path, content):
|
|||||||
def print_ticket_file(info : Info):
|
def print_ticket_file(info : Info):
|
||||||
write_to_file('/tmp/ticket_prueba.txt', info.content)
|
write_to_file('/tmp/ticket_prueba.txt', info.content)
|
||||||
message = "!Impresión Realizada!"
|
message = "!Impresión Realizada!"
|
||||||
|
|
||||||
|
return Response(content=message, status_code=200)
|
||||||
|
|
||||||
|
@app.post("/order_kitchen")
|
||||||
|
def print_ticket_file_kitchen(info : Info):
|
||||||
|
write_to_file('/tmp/ticket_kitchen.txt', info.content)
|
||||||
|
message = "!Impresión Realizada!"
|
||||||
|
|
||||||
|
return Response(content=message, status_code=200)
|
||||||
|
|
||||||
|
@app.post("/order_bar")
|
||||||
|
def print_ticket_file_bar(info : Info):
|
||||||
|
write_to_file('/tmp/ticket_bar.txt', info.content)
|
||||||
|
message = "!Impresión Realizada!"
|
||||||
|
|
||||||
|
return Response(content=message, status_code=200)
|
||||||
|
Loading…
Reference in New Issue
Block a user