from django.urls import path from users.api.views import CurrentUserAPIView urlpatterns = [ path('user/', CurrentUserAPIView.as_view(), name='current-user') ]
from django.urls import path from users.api.views import CurrentUserAPIView from posts.api.views import PostAPIView, PostListView, CommentListView urlpatterns = [ path("user/", CurrentUserAPIView.as_view(), name="current-user"), path("posts/", PostListView.as_view(), name="all-posts"), path("comments/", CommentListView.as_view(), name="all-comments"), ]
from django.urls import path from users.api.views import CurrentUserAPIView urlpatterns = [ path( 'user/', CurrentUserAPIView.as_view(), name='current-user', ), ]