Created
September 8, 2019 22:57
-
-
Save olegkovalov/0298e6547070cca146d293f318451d74 to your computer and use it in GitHub Desktop.
blog urls
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
from django.urls import path | |
from .views import blog_views | |
urlpatterns = [ | |
path('posts/', blog_views.PostListCreateAPIView.as_view(), name='api-post-list'), | |
path('posts/<uuid:pk>/', blog_views.PostDetailsAPIView.as_view(), name='api-post-details'), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment