diff options
| author | root <root@turin.home> | 2022-02-03 18:08:28 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-02-03 18:08:28 +0000 |
| commit | 1ca19f43c131d77f18008dde867e76153288de38 (patch) | |
| tree | 9423f24da815fee682b73189f03d18641c557b3e /api.py | |
| parent | 333bdb9507ca82709d92fe8919a9b40fc02d7dc7 (diff) | |
Exports and formatting. Reformatting.
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
