Updates
This commit is contained in:
30
ETB-API/collaboration_war_rooms/urls.py
Normal file
30
ETB-API/collaboration_war_rooms/urls.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""
|
||||
URL configuration for Collaboration & War Rooms module
|
||||
"""
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from .views.collaboration import (
|
||||
WarRoomViewSet, ConferenceBridgeViewSet, IncidentCommandRoleViewSet,
|
||||
TimelineEventViewSet, WarRoomMessageViewSet, IncidentDecisionViewSet,
|
||||
MessageReactionViewSet, ChatFileViewSet, ChatCommandViewSet, ChatBotViewSet
|
||||
)
|
||||
|
||||
# Create router and register viewsets
|
||||
router = DefaultRouter()
|
||||
router.register(r'war-rooms', WarRoomViewSet, basename='warroom')
|
||||
router.register(r'conference-bridges', ConferenceBridgeViewSet, basename='conferencebridge')
|
||||
router.register(r'command-roles', IncidentCommandRoleViewSet, basename='incidentcommandrole')
|
||||
router.register(r'timeline-events', TimelineEventViewSet, basename='timelineevent')
|
||||
router.register(r'war-room-messages', WarRoomMessageViewSet, basename='warroommessage')
|
||||
router.register(r'incident-decisions', IncidentDecisionViewSet, basename='incidentdecision')
|
||||
router.register(r'message-reactions', MessageReactionViewSet, basename='messagereaction')
|
||||
router.register(r'chat-files', ChatFileViewSet, basename='chatfile')
|
||||
router.register(r'chat-commands', ChatCommandViewSet, basename='chatcommand')
|
||||
router.register(r'chat-bots', ChatBotViewSet, basename='chatbot')
|
||||
|
||||
app_name = 'collaboration_war_rooms'
|
||||
|
||||
urlpatterns = [
|
||||
path('api/', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user