from rest_framework import urlpatterns
from rest_framework.routers import DefaultRouter
from django.urls import path
from . import views
router = DefaultRouter()
router.register('users', views.UserAPIViewSet)
router.register('friend-relations', views.FriendRelationAPIViewSet)
router.register('chatrooms', views.ChatroomAPIViewSet)
router.register('messages', views.MessageAPIViewSet)
urlpatterns = [path('auth/', views.AuthAPIView.as_view()), path('updates/',
    views.UpdateAPIView.as_view())]
urlpatterns += router.urls

561ef7c48a3adb4c60851ac60ebe1976be32b902
<mask token>

<mask token>
router.register('users', views.UserAPIViewSet)
router.register('friend-relations', views.FriendRelationAPIViewSet)
router.register('chatrooms', views.ChatroomAPIViewSet)
router.register('messages', views.MessageAPIViewSet)
<mask token>
urlpatterns += router.urls

<mask token>
router = DefaultRouter()
router.register('users', views.UserAPIViewSet)
router.register('friend-relations', views.FriendRelationAPIViewSet)
router.register('chatrooms', views.ChatroomAPIViewSet)
router.register('messages', views.MessageAPIViewSet)
urlpatterns = [path('auth/', views.AuthAPIView.as_view()), path('updates/',
    views.UpdateAPIView.as_view())]
urlpatterns += router.urls

from rest_framework import urlpatterns
from rest_framework.routers import DefaultRouter
from django.urls import path
from . import views
router = DefaultRouter()
router.register('users', views.UserAPIViewSet)
router.register('friend-relations', views.FriendRelationAPIViewSet)
router.register('chatrooms', views.ChatroomAPIViewSet)
router.register('messages', views.MessageAPIViewSet)
urlpatterns = [path('auth/', views.AuthAPIView.as_view()), path('updates/',
    views.UpdateAPIView.as_view())]
urlpatterns += router.urls
