2022-05-18 10:15:54 +02:00
|
|
|
from django.conf.urls import include
|
|
|
|
from django.urls import path
|
2022-06-24 13:42:16 +02:00
|
|
|
from .views import RoomAPI, ParcoursAPI, RoomExist, ChallengeAPI, changeRoomName, getCorrectionInfo, getEditParcours, lockRoom, publicResultToggler
|
2022-05-18 10:15:54 +02:00
|
|
|
urlpatterns = [
|
|
|
|
path('room/', RoomAPI.as_view()),
|
|
|
|
path('parcours/', ParcoursAPI.as_view()),
|
|
|
|
path('room/<str:id_code>', RoomExist),
|
|
|
|
path('correct/', getCorrectionInfo),
|
2022-06-24 13:42:16 +02:00
|
|
|
path('edit/', getEditParcours),
|
|
|
|
path('lock/', lockRoom),
|
|
|
|
path('public/', publicResultToggler),
|
|
|
|
path('change_name/', changeRoomName),
|
|
|
|
path('challenge/', ChallengeAPI.as_view()),
|
2022-05-18 10:15:54 +02:00
|
|
|
]
|