Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c9f284
commit 4585bb6
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
from django.urls import path | ||
from rest_framework.urlpatterns import format_suffix_patterns | ||
from snippets import views | ||
from snippets.views import SnippetList | ||
from snippets.views import SnippetList, SnippetDetail | ||
|
||
urlpatterns = [ | ||
path('snippets/', SnippetList.as_view()), | ||
path('snippets/<int:pk>/', views.snippet_detail), | ||
path('snippets/<int:pk>/', SnippetDetail.as_view()), | ||
] | ||
|
||
urlpatterns = format_suffix_patterns(urlpatterns) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters