mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Added websocket endpoint for student statuses
This commit is contained in:
parent
fcd941a80f
commit
4b20812021
5 changed files with 74 additions and 2 deletions
8
stude/api/routing.py
Normal file
8
stude/api/routing.py
Normal 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))
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue