diff options
Diffstat (limited to 'ttun_server/endpoints.py')
| -rw-r--r-- | ttun_server/endpoints.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ttun_server/endpoints.py b/ttun_server/endpoints.py index b33fe65..b25ffe4 100644 --- a/ttun_server/endpoints.py +++ b/ttun_server/endpoints.py | |||
| @@ -55,6 +55,14 @@ class Proxy(HTTPEndpoint): | |||
| 55 | await response(self.scope, self.receive, self.send) | 55 | await response(self.scope, self.receive, self.send) |
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | class Health(HTTPEndpoint): | ||
| 59 | async def get(self, _) -> None: | ||
| 60 | response = Response(content='OK', status_code=200) | ||
| 61 | |||
| 62 | await response(self.scope, self.receive, self.send) | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 58 | class Tunnel(WebSocketEndpoint): | 66 | class Tunnel(WebSocketEndpoint): |
| 59 | encoding = 'json' | 67 | encoding = 'json' |
| 60 | 68 | ||
