15 lines
423 B
Python
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),
|
|
]
|