I am using DRF router with a prefix + include like this:
router = BulkRouter()
router.register(r"myfeature", MyfeatureViewSet, base_name="myfeature")
urlpatterns = [
url(r"^api/1/", include(router.urls)),]
This allows me to hit the both api/1
and api/1/myfeature
URLS. How can I prevent the first URL from returning 200's? The response of that endpoint is a list of everything registered under the router which I don't want to make easily obtainable.