: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from posthog.api.routing import RouterRegistry
import products.autoresearch.backend.presentation.views.views as autoresearch
def register_routes(routers: RouterRegistry) -> None:
autoresearch_router = routers.projects.register(
r"autoresearch",
autoresearch.AutoresearchPipelineViewSet,
"project_autoresearch_pipelines",
["project_id"],
)
autoresearch_router.register(
r"models",
autoresearch.AutoresearchModelViewSet,
"project_autoresearch_models",
["project_id", "pipeline_id"],
)
autoresearch_router.register(
r"runs",
autoresearch.AutoresearchRunViewSet,
"project_autoresearch_runs",
["project_id", "pipeline_id"],
)
autoresearch_router.register(
r"training_runs",
autoresearch.AutoresearchTrainingRunViewSet,
"project_autoresearch_training_runs",
["project_id", "pipeline_id"],
)
autoresearch_router.register(
r"suggestions",
autoresearch.AutoresearchSuggestionViewSet,
"project_autoresearch_suggestions",
["project_id", "pipeline_id"],
)