Skip to content

Instantly share code, notes, and snippets.

@olegkovalov olegkovalov/urls.py
Created Sep 8, 2019

Embed
What would you like to do?
blog urls
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
You can’t perform that action at this time.