<filename>mission_api/urls.py<gh_stars>0
from django.urls import path, include
from rest_framework import routers
from mission_api.views import MissionViewSet

# Add in our routing for the mission api


router = routers.DefaultRouter()
router.register(r'api/mission', MissionViewSet, basename='mission')

urlpatterns = [
    #path(r'api/mission/<int:pk>/cancel', cancel),
    path('', include(router.urls)),
]


<filename>mission_api/urls.py<gh_stars>0
from django.urls import path, include
from rest_framework import routers
from mission_api.views import MissionViewSet

# Add in our routing for the mission api


router = routers.DefaultRouter()
router.register(r'api/mission', MissionViewSet, basename='mission')

urlpatterns = [
    #path(r'api/mission/<int:pk>/cancel', cancel),
    path('', include(router.urls)),
]


# Add in our routing for the mission api #path(r'api/mission/<int:pk>/cancel', cancel),