Skip to content

Instantly share code, notes, and snippets.

@Daniiarz
Created December 1, 2019 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daniiarz/fb3285d04d70b4aee9c8f367f874af48 to your computer and use it in GitHub Desktop.
Save Daniiarz/fb3285d04d70b4aee9c8f367f874af48 to your computer and use it in GitHub Desktop.
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
# router = DefaultRouter()
# router.register(r"roles", views.RoleViewSet)
urlpatterns = [
path("roles/", views.RoleViews.as_view(), name="roles")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment