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.

670 B
Raw Blame
from posthog.api.routing import RouterRegistry

from products.managed_migrations.backend.api.batch_imports import BatchImportViewSet
from products.managed_migrations.backend.api.support_batch_imports import BatchImportSupportViewSet


def register_routes(routers: RouterRegistry) -> None:
    routers.projects.register(
        r"managed_migrations",
        BatchImportViewSet,
        "project_managed_migrations",
        ["project_id"],
    )
    # Staff-only cross-team diagnostics: root-level so it is not team-nested.
    routers.root.register(
        r"managed_migrations_support",
        BatchImportSupportViewSet,
        "managed_migrations_support",
    )