From 5071bb32432b39b950af7191e4df106f3d75e401 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 20 Feb 2022 23:11:08 -0500 Subject: [PATCH] API Update for Link --- python/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/api.py b/python/api.py index 3a35a8d..9259cb1 100644 --- a/python/api.py +++ b/python/api.py @@ -13,6 +13,10 @@ def brightness(): status = os.popen('sudo cat /sys/class/backlight/rpi_backlight/brightness').read() return status +@app.route('/connection',methods = ['POST']) +def connection(): + if request.method == 'POST': + return "OK" @app.route('/audio',methods = ['POST']) def volume():