Added posts creation and posts detail

This commit is contained in:
ITQ
2024-03-04 16:37:16 +03:00
parent 12bda5d3da
commit 4946122f2e
12 changed files with 180 additions and 0 deletions
+16
View File
@@ -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",
),
]