Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Last active November 17, 2019 05:48
Show Gist options
  • Select an option

  • Save aballah-chamakh/6b483005f69a377a1ca02d9821ee1889 to your computer and use it in GitHub Desktop.

Select an option

Save aballah-chamakh/6b483005f69a377a1ca02d9821ee1889 to your computer and use it in GitHub Desktop.
from django.conf.urls import include
from django.urls import path
from rest_framework import routers
from .views import InferenceViewSet
router = routers.DefaultRouter()
router.register('inference', InferenceViewSet)
urlpatterns = [
path('', include(router.urls)),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment