Skip to content

Commit

Permalink
Update webapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpdowling authored Feb 13, 2020
1 parent d97a6ed commit 88d8310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def set_temp(ip_address, temp):
printer_info = set_temperature({'ip': ip_address, 'port': PORT}, temp)
return jsonify(printer_info)

@app.route("/<string:ip_address>/set-led/<string:red>/<string:green>/<string:blue>")
def set_led(ip_address, temp):
@app.route("/<string:ip_address>/set-light/<string:red>/<string:green>/<string:blue>")
def set_light(ip_address, temp):
printer_info = set_led({'ip': ip_address, 'port': PORT}, red, green, blue)
return jsonify(printer_info)

Expand Down

0 comments on commit 88d8310

Please sign in to comment.