aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-28 21:53:56 +0000
committerGravatar Joe Banks <[email protected]>2020-12-28 21:53:56 +0000
commit5aebc27e2d1eac3a1f359e4672b34b2b9af2c572 (patch)
tree9b6a8e18987133f2518c8bf652fb5a2253c21e43 /backend
parentMerge pull request #48 from python-discord/ks123/optional-questions (diff)
Minor DevOps tweaks
Diffstat (limited to 'backend')
-rw-r--r--backend/routes/index.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/routes/index.py b/backend/routes/index.py
index 2551c58..207c36a 100644
--- a/backend/routes/index.py
+++ b/backend/routes/index.py
@@ -1,6 +1,8 @@
"""
Index route for the forms API.
"""
+import platform
+
from pydantic import BaseModel
from pydantic.fields import Field
from spectree import Response
@@ -23,6 +25,9 @@ class IndexResponse(BaseModel):
sha: str = Field(
description="Current release Git SHA in production."
)
+ node: str = Field(
+ description="The node that processed the request."
+ )
class IndexRoute(Route):
@@ -46,7 +51,8 @@ class IndexRoute(Route):
"user": {
"authenticated": False
},
- "sha": GIT_SHA
+ "sha": GIT_SHA,
+ "node": platform.uname().node
}
if request.user.is_authenticated: