summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:36:45 +0000
committerroot <root@turin.home>2022-01-30 15:36:45 +0000
commit099b121b5a9188514f56fb0728d777d3de8d0fcf (patch)
tree4a3c387b4e76e76d3551f2cf407399a8eca50fc8
parenta4da36243c1be904770a0d62425ca7877a1ae086 (diff)
Api formatting
-rw-r--r--api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/api.py b/api.py
index 29f4f5c..e4df20b 100644
--- a/api.py
+++ b/api.py
@@ -3,6 +3,8 @@ from __main__ import app
@app.route("/api/info")
def api_info():
msg = """
+ <link rel="stylesheet" type="text/css" href="/static/style.css">
+ <pre>
You can access data with the api. There are multiple api routes to
get data. They are all in the format of [ip address]/api/[data]
@@ -14,6 +16,7 @@ def api_info():
returns the current target temperature
[ip]/api/on
returns True if the heating is off and False if it is off
+ </pre>
"""
return msg