chat qo'shildi
This commit is contained in:
9
core/apps/chat/urls.py
Normal file
9
core/apps/chat/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from .views import ChatmessageView, ChatRoomView
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register("rooms", ChatRoomView, basename="chat-rooms")
|
||||
router.register("messages", ChatmessageView, basename="chat-messages")
|
||||
urlpatterns = [path("", include(router.urls))]
|
||||
Reference in New Issue
Block a user