15 lines
597 B
Python
15 lines
597 B
Python
from django.conf.urls import include
|
|
from django.urls import path
|
|
from .views import RoomAPI, ParcoursAPI, RoomExist, ChallengeAPI, changeRoomName, getCorrectionInfo, getEditParcours, lockRoom, publicResultToggler
|
|
urlpatterns = [
|
|
path('room/', RoomAPI.as_view()),
|
|
path('parcours/', ParcoursAPI.as_view()),
|
|
path('room/<str:id_code>', RoomExist),
|
|
path('correct/', getCorrectionInfo),
|
|
path('edit/', getEditParcours),
|
|
path('lock/', lockRoom),
|
|
path('public/', publicResultToggler),
|
|
path('change_name/', changeRoomName),
|
|
path('challenge/', ChallengeAPI.as_view()),
|
|
]
|