from django.conf.urls import url
from django.urls import path
from . import views

urlpatterns = [
    path(r'chat/', views.all_rooms, name="all_rooms"),
    url(r'token$', views.token, name="token"),
    url(r'rooms/(?P<slug>[-\w]+)/$', views.room_detail, name="room_detail"),
]
from django.conf.urls import url
from django.urls import path
from . import views

urlpatterns = [
    path(r'chat/', views.all_rooms, name="all_rooms"),
    url(r'token$', views.token, name="token"),
    url(r'rooms/(?P<slug>[-\w]+)/$', views.room_detail, name="room_detail"),
]