You've already forked opc-backend
13 lines
468 B
Python
13 lines
468 B
Python
|
|
from django.urls import path, include
|
||
|
|
from rest_framework.routers import DefaultRouter
|
||
|
|
from .views import TaskViewSet, TaskApplicationViewSet, TaskInvitationViewSet
|
||
|
|
|
||
|
|
router = DefaultRouter()
|
||
|
|
router.register('tasks', TaskViewSet, basename='task')
|
||
|
|
router.register('applications', TaskApplicationViewSet, basename='task-application')
|
||
|
|
router.register('invitations', TaskInvitationViewSet, basename='task-invitation')
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path('', include(router.urls)),
|
||
|
|
]
|