from django.conf.urls import url, include
from django.urls import path
from rest_framework.routers import SimpleRouter

from chat import views
from chat.views import ChatRoomViewSet
from chat.views import ChatMessageViewSet

router = SimpleRouter()
router.register('chatroom', ChatRoomViewSet)
router.register('chat', ChatMessageViewSet)


urlpatterns = [
    path('', include(router.urls))
    # url(r'^chat/$', views.index, name='index'),
    # url(r'^chat/(?P<room_name>[^/]+)/$', views.room, name='room'),
]

2148b883a656e280e7842465ee4df90fb0b7ef26
<mask token>

<mask token>
router.register('chatroom', ChatRoomViewSet)
router.register('chat', ChatMessageViewSet)
<mask token>

<mask token>
router = SimpleRouter()
router.register('chatroom', ChatRoomViewSet)
router.register('chat', ChatMessageViewSet)
urlpatterns = [path('', include(router.urls))]

from django.conf.urls import url, include
from django.urls import path
from rest_framework.routers import SimpleRouter
from chat import views
from chat.views import ChatRoomViewSet
from chat.views import ChatMessageViewSet
router = SimpleRouter()
router.register('chatroom', ChatRoomViewSet)
router.register('chat', ChatMessageViewSet)
urlpatterns = [path('', include(router.urls))]

from django.conf.urls import url, include
from django.urls import path
from rest_framework.routers import SimpleRouter

from chat import views
from chat.views import ChatRoomViewSet
from chat.views import ChatMessageViewSet

router = SimpleRouter()
router.register('chatroom', ChatRoomViewSet)
router.register('chat', ChatMessageViewSet)


urlpatterns = [
    path('', include(router.urls))
    # url(r'^chat/$', views.index, name='index'),
    # url(r'^chat/(?P<room_name>[^/]+)/$', views.room, name='room'),
]
