Added posts creation and posts detail
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from django.urls import path
|
||||
|
||||
import api.posts.views
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"/create",
|
||||
api.posts.views.CreatePostApiView.as_view(),
|
||||
name="create-post",
|
||||
),
|
||||
path(
|
||||
"/<str:post_id>",
|
||||
api.posts.views.PostDetailApiView.as_view(),
|
||||
name="post-detail",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user