mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
f22a082f30
* Debug CH queries * tests * Logout when impersonated session * Put "Debug ClickHouse queries" in its own command * Clean up ClickHouse modal Co-authored-by: Michael Matloka <dev@twixes.com>
12 lines
520 B
Python
12 lines
520 B
Python
from rest_framework_extensions.routers import NestedRegistryItem
|
|
|
|
from posthog.api.routing import DefaultRouterPlusPlus
|
|
|
|
from .api import debug_ch_queries, hooks, license
|
|
|
|
|
|
def extend_api_router(root_router: DefaultRouterPlusPlus, *, projects_router: NestedRegistryItem):
|
|
root_router.register(r"license", license.LicenseViewSet)
|
|
root_router.register(r"debug_ch_queries", debug_ch_queries.DebugCHQueries, "debug_ch_queries")
|
|
projects_router.register(r"hooks", hooks.HookViewSet, "project_hooks", ["team_id"])
|