31 lines
931 B
Python
Executable File
31 lines
931 B
Python
Executable File
from django.urls import path, include
|
|
from . import views
|
|
|
|
from rapids import views as rapid_views
|
|
from longs import views as long_views
|
|
|
|
from rest_framework import routers
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'rapids/exams', rapid_views.ExamViewSet, basename="rapid-exams")
|
|
router.register(r'longs/exams', long_views.ExamViewSet, basename="long-exams")
|
|
|
|
app_name = "generic"
|
|
|
|
urlpatterns = [
|
|
# path('', views.question_list, name='question_list'),
|
|
path("examination/create/",
|
|
views.create_examination,
|
|
name="create_examination"),
|
|
path("examination/ajax/get_examination_id",
|
|
views.get_examination_id,
|
|
name="get_examination_id"),
|
|
path("generic_exam_json_edit",
|
|
views.generic_exam_json_edit,
|
|
name="generic_exam_json_edit"),
|
|
|
|
|
|
path('api/', include(router.urls)),
|
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
|
]
|