summaryrefslogtreecommitdiffstats
path: root/ttun_server/endpoints.py
diff options
context:
space:
mode:
Diffstat (limited to 'ttun_server/endpoints.py')
-rw-r--r--ttun_server/endpoints.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ttun_server/endpoints.py b/ttun_server/endpoints.py
index 5b9e57f..b62313c 100644
--- a/ttun_server/endpoints.py
+++ b/ttun_server/endpoints.py
@@ -48,6 +48,14 @@ class Proxy(HTTPEndpoint):
48 await response(self.scope, self.receive, self.send) 48 await response(self.scope, self.receive, self.send)
49 49
50 50
51class Health(HTTPEndpoint):
52 async def get(self) -> None:
53 response = Response(content='OK', status_code=200)
54
55 await response(self.scope, self.receive, self.send)
56
57
58
51class Tunnel(WebSocketEndpoint): 59class Tunnel(WebSocketEndpoint):
52 encoding = 'json' 60 encoding = 'json'
53 61