Add: posts api app
This commit is contained in:
parent
141e08f0f4
commit
a5b0580be6
6 changed files with 197 additions and 0 deletions
8
backend/api/posts/urls.py
Normal file
8
backend/api/posts/urls.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from django.urls import path
|
||||
|
||||
from api.posts.views import PostView, PostListView
|
||||
|
||||
urlpatterns = [
|
||||
path("<str:post_id>/", PostView.as_view(), name="post_details"),
|
||||
path("", PostListView.as_view(), name="post_list"),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue