# chat/urls.py
from django.urls import path, include

from . import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register("rooms-view", views.RoomViewset, basename="rooms-detail")
router.register("rooms-wishlist", views.RoomWishlistProductViewset, basename="rooms-wishlist")
router.register("user-orders", views.UserOrderLineViewSet, basename="user-orders")


urlpatterns = [
    path('keyword/', views.RecommendationKeywords.as_view()),
    path('chat/', views.index, name='index'),
    path("", include(router.urls)),
    path('<str:room_name>/', views.room, name='room'),
]
