Skip to content

Commit

Permalink
try registering route in different place
Browse files Browse the repository at this point in the history
  • Loading branch information
talsabagport committed Oct 31, 2024
1 parent 8f2aa4b commit 203eec2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions integrations/jira/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ async def on_resync_issues(kind: str) -> ASYNC_GENERATOR_RESYNC_TYPE:
yield issues


@ocean.router.post("/webhook")
async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]:
return {"ok": True}


# Called once when the integration starts.
@ocean.on_start()
async def on_start() -> None:
Expand Down
2 changes: 1 addition & 1 deletion integrations/jira/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jira"
version = "0.1.89-dev049"
version = "0.1.89-dev050"
description = "Integration to bring information from Jira into Port"
authors = ["Mor Paz <[email protected]>"]

Expand Down
4 changes: 4 additions & 0 deletions port_ocean/ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def __init__(
)
self.integration_router = integration_router or APIRouter()

@self.integration_router.post("/webhook")
async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]:
return {"ok": True}

self.port_client = PortClient(
base_url=self.config.port.base_url,
client_id=self.config.port.client_id,
Expand Down

0 comments on commit 203eec2

Please sign in to comment.