You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
324 B
12 lines
324 B
from django.urls import path |
|
from rest_framework.urlpatterns import format_suffix_patterns |
|
|
|
from snippets.views import SnippetView,SnippetDetailView |
|
|
|
urlpatterns = [ |
|
path('snippets/',SnippetView.as_view()), |
|
path('snippet/<int:pk>/',SnippetDetailView.as_view()), |
|
] |
|
|
|
|
|
urlpatterns = format_suffix_patterns(urlpatterns)
|
|
|