Skip to content

Commit

Permalink
Fix /docs and remove middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
talsabagport committed Oct 31, 2024
1 parent 507ab1b commit 5ff7c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions port_ocean/ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 5ff7c84

Please sign in to comment.