Added websocket endpoint for student statuses

This commit is contained in:
Keannu Christian Bernasol 2023-07-01 15:47:28 +08:00
parent fcd941a80f
commit 4b20812021
5 changed files with 74 additions and 2 deletions

8
stude/api/routing.py Normal file
View file

@ -0,0 +1,8 @@
from django.urls import re_path
from channels.routing import URLRouter
import student_status.routing
import student_status.consumers
websocket_urlpatterns = [
re_path(r'student_status/',
URLRouter(student_status.routing.websocket_urlpatterns))
]