diff options
| author | root <root@turin.home> | 2022-01-30 15:36:45 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-30 15:36:45 +0000 |
| commit | 099b121b5a9188514f56fb0728d777d3de8d0fcf (patch) | |
| tree | 4a3c387b4e76e76d3551f2cf407399a8eca50fc8 | |
| parent | a4da36243c1be904770a0d62425ca7877a1ae086 (diff) | |
Api formatting
| -rw-r--r-- | api.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
