Skip to content

Commit

Permalink
feat: adding post app urls
Browse files Browse the repository at this point in the history
  • Loading branch information
rzashakeri committed Sep 9, 2022
1 parent 1b9c853 commit 7a8c191
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions post/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from .views import like_view, post_view, show_post_view, create_new_post_view

urlpatterns = [
path("like/<int:post_id>/", like_view, name="like"),
path("<int:post_id>/", post_view, name="post"),
path("<slug:slug>", show_post_view, name="show_post"),
path("create/new/post", create_new_post_view, name="upload_post"),
path("post/like/<int:post_id>/", like_view, name="like"),
path("post/<int:post_id>/", post_view, name="post"),
path("post/<slug:slug>", show_post_view, name="show_post"),
path("create/new/post/", create_new_post_view, name="upload_post"),
]

0 comments on commit 7a8c191

Please sign in to comment.