text: from django.urls import path
  from .views import RegisterView,LoginView,PostApiView,PostDetailView,CommentListsView,CommentDetailView,UpvotePostView
  
  app_name = "newsboardapi"
  
  urlpatterns = [
      
      path('',RegisterView.as_view(),name = "register"),
      path('login/',LoginView.as_view(),name = "login"),
      path('posts-list/',PostApiView.as_view(),name='posts_list'),
      path('posts-detail/<pk>/',PostDetailView.as_view(),name='posts_detail'),
      path('comments/', CommentListsView.as_view(), name='comments'),
      path('comments/<pk>', CommentDetailView.as_view(), name='comment_details'),
      path('upvotes/<pk>',UpvotePostView.as_view(), name='upvotes')
  ]
  
  