Files
social-graph/backend/contacts/urls.py
T
2026-04-08 15:29:52 +03:00

15 lines
423 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register('contacts', views.ContactViewSet)
router.register('relations', views.RelationViewSet)
urlpatterns = [
path('', include(router.urls)),
path('graph/', views.graph_data),
path('relation-types/', views.relation_types),
path('import/', views.import_contacts),
]