from django.conf.urls import url, include
from views import ProcedureViewSet
from rest_framework import routers

router = routers.SimpleRouter()

router.register(r'procedures', ProcedureViewSet)

urlpatterns = [
    url(r'^', include(router.urls))
]

from django.conf.urls import url, include
from views import ProcedureViewSet
from rest_framework import routers

router = routers.SimpleRouter(trailing_slash=False)

router.register(r'procedures', ProcedureViewSet)

urlpatterns = [
    url(r'^', include(router.urls))
]

Remove trailing slash from the router
Remove trailing slash from the router

  from django.conf.urls import url, include
  from views import ProcedureViewSet
  from rest_framework import routers
  
- router = routers.SimpleRouter()
+ router = routers.SimpleRouter(trailing_slash=False)
  
  router.register(r'procedures', ProcedureViewSet)
  
  urlpatterns = [
      url(r'^', include(router.urls))
  ]
  
Remove trailing slash from the router
## Code Before:
from django.conf.urls import url, include
from views import ProcedureViewSet
from rest_framework import routers

router = routers.SimpleRouter()

router.register(r'procedures', ProcedureViewSet)

urlpatterns = [
    url(r'^', include(router.urls))
]

## Instruction:
Remove trailing slash from the router
## Code After:
from django.conf.urls import url, include
from views import ProcedureViewSet
from rest_framework import routers

router = routers.SimpleRouter(trailing_slash=False)

router.register(r'procedures', ProcedureViewSet)

urlpatterns = [
    url(r'^', include(router.urls))
]
