from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import (
    CommentViewSet,
    ReplyViewSet,
    LikedComments,
    LikedReplies,
    SavedComments,
    SavedReplies,
    CommentLikes,
    ReplyLikes,
)

router = DefaultRouter(trailing_slash=False)
router.register(r"", CommentViewSet, basename="comments")

replies_router = DefaultRouter(trailing_slash=False)
replies_router.register(r"", ReplyViewSet, basename="replies")

urlpatterns = router.urls + [
    path("liked", LikedComments.as_view()),
    path("saved", SavedComments.as_view()),
    path("<int:id>/likes", CommentLikes.as_view()),
    path("replies/", include(replies_router.urls)),
    path("replies/liked", LikedReplies.as_view()),
    path("replies/saved", SavedReplies.as_view()),
    path("replies/<int:id>/likes", ReplyLikes.as_view()),
]
"""
Comments url patterns.
"""

9e01aeb9e1b8ec7e287f51f4e11afc380976ef29
<mask token>

<mask token>
router.register('', CommentViewSet, basename='comments')
<mask token>
replies_router.register('', ReplyViewSet, basename='replies')
<mask token>

<mask token>
router = DefaultRouter(trailing_slash=False)
router.register('', CommentViewSet, basename='comments')
replies_router = DefaultRouter(trailing_slash=False)
replies_router.register('', ReplyViewSet, basename='replies')
urlpatterns = router.urls + [path('liked', LikedComments.as_view()), path(
    'saved', SavedComments.as_view()), path('<int:id>/likes', CommentLikes.
    as_view()), path('replies/', include(replies_router.urls)), path(
    'replies/liked', LikedReplies.as_view()), path('replies/saved',
    SavedReplies.as_view()), path('replies/<int:id>/likes', ReplyLikes.
    as_view())]
<mask token>

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import CommentViewSet, ReplyViewSet, LikedComments, LikedReplies, SavedComments, SavedReplies, CommentLikes, ReplyLikes
router = DefaultRouter(trailing_slash=False)
router.register('', CommentViewSet, basename='comments')
replies_router = DefaultRouter(trailing_slash=False)
replies_router.register('', ReplyViewSet, basename='replies')
urlpatterns = router.urls + [path('liked', LikedComments.as_view()), path(
    'saved', SavedComments.as_view()), path('<int:id>/likes', CommentLikes.
    as_view()), path('replies/', include(replies_router.urls)), path(
    'replies/liked', LikedReplies.as_view()), path('replies/saved',
    SavedReplies.as_view()), path('replies/<int:id>/likes', ReplyLikes.
    as_view())]
<mask token>

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import (
    CommentViewSet,
    ReplyViewSet,
    LikedComments,
    LikedReplies,
    SavedComments,
    SavedReplies,
    CommentLikes,
    ReplyLikes,
)

router = DefaultRouter(trailing_slash=False)
router.register(r"", CommentViewSet, basename="comments")

replies_router = DefaultRouter(trailing_slash=False)
replies_router.register(r"", ReplyViewSet, basename="replies")

urlpatterns = router.urls + [
    path("liked", LikedComments.as_view()),
    path("saved", SavedComments.as_view()),
    path("<int:id>/likes", CommentLikes.as_view()),
    path("replies/", include(replies_router.urls)),
    path("replies/liked", LikedReplies.as_view()),
    path("replies/saved", SavedReplies.as_view()),
    path("replies/<int:id>/likes", ReplyLikes.as_view()),
]
"""
Comments url patterns.
"""
