diff options
Diffstat (limited to 'proxy/__init__.py')
| -rw-r--r-- | proxy/__init__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/proxy/__init__.py b/proxy/__init__.py new file mode 100644 index 0000000..fcdb23b --- /dev/null +++ b/proxy/__init__.py | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | from starlette.applications import Starlette | ||
| 2 | from starlette.routing import Route, WebSocketRoute | ||
| 3 | |||
| 4 | from proxy.endpoints import Proxy | ||
| 5 | from proxy.websockets import WebsocketProxy | ||
| 6 | |||
| 7 | app = Starlette( | ||
| 8 | debug=True, | ||
| 9 | routes=[ | ||
| 10 | Route('/{path:path}', Proxy), | ||
| 11 | WebSocketRoute('/{path:path}', WebsocketProxy), | ||
| 12 | ] | ||
| 13 | ) | ||
