SOITA/trials/urls.py
Hubert Jankowski 7c18f0920a WIP
2021-12-12 11:35:35 +01:00

17 lines
466 B
Python

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
router = DefaultRouter(trailing_slash=False)
router.register("items", TestModelViewSet)
urlpatterns = [
path('<int:test_id>/show', TestTemplateView.as_view()),
path('<int:test_id>/mark', TestValidateAPIView.as_view())
]
urlpatterns += router.urls