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.

575 B
Raw Blame
from posthog.api.routing import RouterRegistry
from posthog.settings import EE_AVAILABLE

from products.groups.backend.presentation.views import GroupsTypesViewSet, GroupsViewSet


def register_routes(routers: RouterRegistry) -> None:
    # The groups API is part of the enterprise edition, so a non-EE install serves none of these routes.
    if not EE_AVAILABLE:
        return

    routers.projects.register(r"groups", GroupsViewSet, "project_groups", ["team_id"])
    routers.projects.register(r"groups_types", GroupsTypesViewSet, "project_groups_types", ["project_id"])