-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Lwetabe
authored and
Daniel Lwetabe
committed
Apr 10, 2019
1 parent
dac6abd
commit e7f099d
Showing
5 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from django.urls import path | ||
from .views import ListCreateArticle, RetrieveUpdateDestroyArticle | ||
from .views import ListCreateArticle, RetrieveUpdateDestroyArticle, ArticleLikeDislikeView | ||
|
||
app_name = "article_application" | ||
urlpatterns = [ | ||
path('articles/', ListCreateArticle.as_view(), name='list-articles'), | ||
path('articles/<int:pk>', RetrieveUpdateDestroyArticle.as_view(), name='auth-articles'), | ||
path('articles/<int:pk>/like', ArticleLikeDislikeView.as_view(), name='like-dislike'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters