From 5aebc27e2d1eac3a1f359e4672b34b2b9af2c572 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Dec 2020 21:53:56 +0000 Subject: Minor DevOps tweaks --- backend/routes/index.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'backend/routes/index.py') 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: -- cgit v1.2.3