summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-02-03 18:08:28 +0000
committerroot <root@turin.home>2022-02-03 18:08:28 +0000
commit1ca19f43c131d77f18008dde867e76153288de38 (patch)
tree9423f24da815fee682b73189f03d18641c557b3e /api.py
parent333bdb9507ca82709d92fe8919a9b40fc02d7dc7 (diff)
Exports and formatting. Reformatting.
Diffstat (limited to 'api.py')
-rw-r--r--api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api.py b/api.py
index 46d7635..11abd44 100644
--- a/api.py
+++ b/api.py
@@ -1,6 +1,7 @@
from __main__ import app
from __main__ import boiler
+
@app.route("/api/info")
def api_info():
msg = """
@@ -22,6 +23,7 @@ def api_info():
"""
return msg
+
@app.route("/api/current_temperature")
def api_current_temperature():
return str(boiler.temperature)