mirror of
https://github.com/hanzoai/insights.git
synced 2026-10-30 16:15:31 +00:00
Mechanically re-derived: bin/debrand runs over a fresh import of posthog/posthog@fa1a9a60d4 (2026-08-06). The pipeline (.hanzo/workflows), the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md and the squashed initial migration are restored from the shipped tree, same as the previous import. The prune's import-closure guard kept 21 products the new core now imports; dropping them is a refactor now, recorded rather than forced.
43 lines
1.7 KiB
Python
43 lines
1.7 KiB
Python
from insights.api.routing import RouterRegistry
|
|
|
|
from products.web_analytics.backend.api import WebAnalyticsViewSet
|
|
from products.web_analytics.backend.api.heatmaps_api import (
|
|
HeatmapScreenshotViewSet,
|
|
HeatmapViewSet,
|
|
LegacyHeatmapViewSet,
|
|
SavedHeatmapViewSet,
|
|
)
|
|
from products.web_analytics.backend.api.web_analytics_achievements import WebAnalyticsAchievementsViewSet
|
|
from products.web_analytics.backend.api.web_analytics_filter_preset import WebAnalyticsFilterPresetViewSet
|
|
from products.web_analytics.backend.api.web_analytics_path_cleaning_suggestions import (
|
|
WebAnalyticsPathCleaningSuggestionViewSet,
|
|
)
|
|
|
|
|
|
def register_routes(routers: RouterRegistry) -> None:
|
|
routers.root.register(r"heatmap", LegacyHeatmapViewSet, basename="heatmap")
|
|
routers.projects.register(r"heatmaps", HeatmapViewSet, "project_heatmaps", ["team_id"])
|
|
routers.projects.register(
|
|
r"heatmap_screenshots", HeatmapScreenshotViewSet, "project_heatmap_screenshots", ["team_id"]
|
|
)
|
|
routers.projects.register(r"saved", SavedHeatmapViewSet, "project_saved", ["team_id"])
|
|
routers.projects.register(
|
|
r"web_analytics_filter_presets",
|
|
WebAnalyticsFilterPresetViewSet,
|
|
"project_web_analytics_filter_preset",
|
|
["team_id"],
|
|
)
|
|
routers.projects.register(r"web_analytics", WebAnalyticsViewSet, "project_web_analytics", ["team_id"])
|
|
routers.projects.register(
|
|
r"web_analytics_achievements",
|
|
WebAnalyticsAchievementsViewSet,
|
|
"project_web_analytics_achievements",
|
|
["team_id"],
|
|
)
|
|
routers.projects.register(
|
|
r"web_analytics_path_cleaning_suggestions",
|
|
WebAnalyticsPathCleaningSuggestionViewSet,
|
|
"project_web_analytics_path_cleaning_suggestions",
|
|
["team_id"],
|
|
)
|