from django.conf.urls import url, include
from App import views

from rest_framework import routers

from App.views import ExamQuestionViewset
from .views import QuestionViewset, ExamViewset

router = routers.DefaultRouter()
router.register(r'question', QuestionViewset)
# router.register(r'story', StoryViewset)
router.register(r'exam', ExamViewset)

urlpatterns = [
    url(r'^api/', include(router.urls)),
    url(r'^$', views.welcome, name="welcome"),
    url(r'^create/', views.create_user, name="create_user"),
    url(r'^validate_login/', views.log_in, name="log_user"),
    url(r'^add_exam/', views.add_exam, name="add_exam"),
    url(r'^add_question/', views.add_question, name="add_question"),
    url(r'^test', views.get_data, name="getdata"),
    url(r'^logout', views.log_out, name="log_out"),
]

074455802054af9fc80dc48c5ad33dc19ffbebb5
<mask token>

<mask token>
router.register('question', QuestionViewset)
router.register('exam', ExamViewset)
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('question', QuestionViewset)
router.register('exam', ExamViewset)
urlpatterns = [url('^api/', include(router.urls)), url('^$', views.welcome,
    name='welcome'), url('^create/', views.create_user, name='create_user'),
    url('^validate_login/', views.log_in, name='log_user'), url(
    '^add_exam/', views.add_exam, name='add_exam'), url('^add_question/',
    views.add_question, name='add_question'), url('^test', views.get_data,
    name='getdata'), url('^logout', views.log_out, name='log_out')]

from django.conf.urls import url, include
from App import views
from rest_framework import routers
from App.views import ExamQuestionViewset
from .views import QuestionViewset, ExamViewset
router = routers.DefaultRouter()
router.register('question', QuestionViewset)
router.register('exam', ExamViewset)
urlpatterns = [url('^api/', include(router.urls)), url('^$', views.welcome,
    name='welcome'), url('^create/', views.create_user, name='create_user'),
    url('^validate_login/', views.log_in, name='log_user'), url(
    '^add_exam/', views.add_exam, name='add_exam'), url('^add_question/',
    views.add_question, name='add_question'), url('^test', views.get_data,
    name='getdata'), url('^logout', views.log_out, name='log_out')]

from django.conf.urls import url, include
from App import views

from rest_framework import routers

from App.views import ExamQuestionViewset
from .views import QuestionViewset, ExamViewset

router = routers.DefaultRouter()
router.register(r'question', QuestionViewset)
# router.register(r'story', StoryViewset)
router.register(r'exam', ExamViewset)

urlpatterns = [
    url(r'^api/', include(router.urls)),
    url(r'^$', views.welcome, name="welcome"),
    url(r'^create/', views.create_user, name="create_user"),
    url(r'^validate_login/', views.log_in, name="log_user"),
    url(r'^add_exam/', views.add_exam, name="add_exam"),
    url(r'^add_question/', views.add_question, name="add_question"),
    url(r'^test', views.get_data, name="getdata"),
    url(r'^logout', views.log_out, name="log_out"),
]
