Created
September 16, 2019 20:55
-
-
Save mitchtabian/c9d2bf1fc0088fe46ab24bee72f5b35f to your computer and use it in GitHub Desktop.
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 blog.api.views import( | |
api_detail_blog_view, | |
api_update_blog_view, | |
api_delete_blog_view, | |
api_create_blog_view, | |
api_is_author_of_blogpost, | |
ApiBlogListView | |
) | |
app_name = 'blog' | |
urlpatterns = [ | |
path('<slug>/', api_detail_blog_view, name="detail"), | |
path('<slug>/update', api_update_blog_view, name="update"), | |
path('<slug>/delete', api_delete_blog_view, name="delete"), | |
path('create', api_create_blog_view, name="create"), | |
path('list', ApiBlogListView.as_view(), name="list"), | |
path('<slug>/is_author', api_is_author_of_blogpost, name="is_author"), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment