From 5ff7c84747b04830f4beea5d3a7f3fbce05c5a3e Mon Sep 17 00:00:00 2001 From: talsabagport Date: Thu, 31 Oct 2024 19:28:23 +0200 Subject: [PATCH] Fix /docs and remove middleware --- port_ocean/ocean.py | 7 +++++-- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/port_ocean/ocean.py b/port_ocean/ocean.py index c9bcbc5ef1..dd6bba1126 100644 --- a/port_ocean/ocean.py +++ b/port_ocean/ocean.py @@ -59,8 +59,11 @@ async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]: return JSONResponse({"ok": True}) self.starlette_app = Starlette( - routes=[Route("/integration/webhook", endpoint=handle_webhook_request)], - middleware=[Middleware(RequestHandlerMiddleware)], + routes=[ + Route("/docs", endpoint=handle_webhook_request), + Route("/integration/webhook", endpoint=handle_webhook_request), + ], + # middleware=[Middleware(RequestHandlerMiddleware)], lifespan=lifespan, ) diff --git a/pyproject.toml b/pyproject.toml index 0329e3fd82..5340f0d24c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "port-ocean" -version = "0.12.2-dev20" +version = "0.12.2-dev21" description = "Port Ocean is a CLI tool for managing your Port projects." readme = "README.md" homepage = "https://app.getport.io"