diff options
Diffstat (limited to 'backend/routes')
| -rw-r--r-- | backend/routes/index.py | 8 | 
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: | 
