Files
social-graph/backend/api/v1/urls.py
T
gitrusprusandCursor cafc7335ad Add plugin platform with modular backend and frontend registry.
Split graph/import/meta into Django apps, add API v1 with OpenAPI and pytest, and introduce plugin registry with the tags reference plugin on both FE and BE.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 09:35:51 +03:00

33 lines
1.1 KiB
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from contacts import views as contact_views
router = DefaultRouter()
router.register('contacts', contact_views.ContactViewSet)
router.register('relations', contact_views.RelationViewSet)
router.register('network-maps', contact_views.NetworkMapViewSet)
urlpatterns = [
path('', include(router.urls)),
path(
'network-maps/<int:map_pk>/memberships/',
contact_views.NetworkMapMembershipViewSet.as_view({'get': 'list', 'post': 'create'}),
name='network-map-memberships-list',
),
path(
'network-maps/<int:map_pk>/memberships/<int:pk>/',
contact_views.NetworkMapMembershipViewSet.as_view({
'get': 'retrieve',
'patch': 'partial_update',
'put': 'update',
'delete': 'destroy',
}),
name='network-map-memberships-detail',
),
path('', include('core.urls')),
path('', include('graph.urls')),
path('', include('import_export.urls')),
path('', include('plugins.urls')),
]