Skip to content

Commit

Permalink
refactor: adding create post url
Browse files Browse the repository at this point in the history
  • Loading branch information
rzashakeri committed Aug 20, 2022
1 parent 4aa3951 commit fff930a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion post/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from django.urls import path

from .views import like_view, post_view, show_post_view
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"),
]

0 comments on commit fff930a

Please sign in to comment.