Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.3 KB
Raw Blame
from posthog.api.routing import RouterRegistry

from products.warehouse_sources.backend.presentation.views import (
    column_statistics,
    external_data_destination,
    external_data_schema,
    warehouse_alert_destinations,
)
from products.warehouse_sources.backend.presentation.views.external_data_source.viewset import ExternalDataSourceViewSet


def register_routes(routers: RouterRegistry) -> None:
    routers.projects.register(
        r"external_data_sources",
        ExternalDataSourceViewSet,
        "project_external_data_sources",
        ["team_id"],
    )
    routers.projects.register(
        r"external_data_destinations",
        external_data_destination.ExternalDataDestinationViewSet,
        "project_external_data_destinations",
        ["team_id"],
    )
    routers.projects.register(
        r"external_data_schemas",
        external_data_schema.ExternalDataSchemaViewset,
        "project_external_data_schemas",
        ["team_id"],
    )
    routers.projects.register(
        r"warehouse_alerts",
        warehouse_alert_destinations.WarehouseAlertDestinationViewSet,
        "project_warehouse_alerts",
        ["team_id"],
    )
    routers.projects.register(
        r"warehouse_column_statistics",
        column_statistics.WarehouseColumnStatisticsViewSet,
        "project_warehouse_column_statistics",
        ["team_id"],
    )