|
@ -1,6 +1,6 @@ |
|
|
from django.urls import path |
|
|
from django.urls import path |
|
|
|
|
|
|
|
|
from .views.assignment import AssignmentDetail, AssignmentList |
|
|
|
|
|
|
|
|
from .views.assignment import AssignmentDetail, AssignmentList, ResetAssignment |
|
|
from .views.comment import CommentDetail, CommentList |
|
|
from .views.comment import CommentDetail, CommentList |
|
|
from .views.example import ExampleDetail, ExampleList |
|
|
from .views.example import ExampleDetail, ExampleList |
|
|
from .views.example_state import ExampleStateList |
|
|
from .views.example_state import ExampleStateList |
|
@ -8,6 +8,7 @@ from .views.example_state import ExampleStateList |
|
|
urlpatterns = [ |
|
|
urlpatterns = [ |
|
|
path(route="assignments", view=AssignmentList.as_view(), name="assignment_list"), |
|
|
path(route="assignments", view=AssignmentList.as_view(), name="assignment_list"), |
|
|
path(route="assignments/<uuid:assignment_id>", view=AssignmentDetail.as_view(), name="assignment_detail"), |
|
|
path(route="assignments/<uuid:assignment_id>", view=AssignmentDetail.as_view(), name="assignment_detail"), |
|
|
|
|
|
path(route="assignments/reset", view=ResetAssignment.as_view(), name="assignment_reset"), |
|
|
path(route="examples", view=ExampleList.as_view(), name="example_list"), |
|
|
path(route="examples", view=ExampleList.as_view(), name="example_list"), |
|
|
path(route="examples/<int:example_id>", view=ExampleDetail.as_view(), name="example_detail"), |
|
|
path(route="examples/<int:example_id>", view=ExampleDetail.as_view(), name="example_detail"), |
|
|
path(route="comments", view=CommentList.as_view(), name="comment_list"), |
|
|
path(route="comments", view=CommentList.as_view(), name="comment_list"), |
|
|