aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.py')
-rwxr-xr-xsrc/app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.py b/src/app.py
index 3964a38..274ff7b 100755
--- a/src/app.py
+++ b/src/app.py
@@ -585,6 +585,7 @@ def cgi_one_value(params, name, default=None):
class Request(Enum):
STATUS = 'status'
TOP = 'top'
+ THERMAL = 'thermal'
REBOOT = 'reboot'
POWEROFF = 'poweroff'
@@ -610,6 +611,8 @@ class Request(Enum):
return Status().complete()
if self is Request.TOP:
return Top().complete()
+ if self is Request.THERMAL:
+ return ThermalInfo().complete()
if self in [Request.REBOOT, Request.POWEROFF] and self.disable_power:
return Response(None, HTTPStatus.FORBIDDEN)