0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/ee/urls.py

21 lines
731 B
Python
Raw Normal View History

2021-08-27 16:20:49 +02:00
from typing import Any, List
from django.conf import settings
from django.urls.conf import path
from rest_framework_extensions.routers import NestedRegistryItem
from posthog.api.routing import DefaultRouterPlusPlus
2021-08-27 16:20:49 +02:00
from .api import authentication, 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"])
2021-08-27 16:20:49 +02:00
urlpatterns: List[Any] = [
path("api/saml/metadata/", authentication.saml_metadata_view),
]