2021-12-05 13:50:34 +01:00
|
|
|
from django.urls import path
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
|
|
from trials.views import TestModelViewSet
|
|
|
|
from trials.views import TestTemplateView
|
|
|
|
from trials.views import TestValidateAPIView
|
2022-01-12 10:50:34 +01:00
|
|
|
from trials.views import TestResultView
|
2021-12-05 13:50:34 +01:00
|
|
|
|
2021-12-12 11:35:35 +01:00
|
|
|
router = DefaultRouter(trailing_slash=False)
|
2021-12-05 13:50:34 +01:00
|
|
|
router.register("items", TestModelViewSet)
|
|
|
|
|
|
|
|
urlpatterns = [
|
2021-12-12 11:35:35 +01:00
|
|
|
path('<int:test_id>/show', TestTemplateView.as_view()),
|
2022-01-12 10:50:34 +01:00
|
|
|
path('<int:test_id>/mark', TestValidateAPIView.as_view()),
|
|
|
|
path('<int:test_id>/result', TestResultView.as_view())
|
2021-12-05 13:50:34 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
urlpatterns += router.urls
|