You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

2 years ago
2 years ago
  1. from django.urls import path
  2. from .views.assignment import (
  3. AssignmentDetail,
  4. AssignmentList,
  5. BulkAssignment,
  6. ResetAssignment,
  7. )
  8. from .views.comment import CommentDetail, CommentList
  9. from .views.example import ExampleDetail, ExampleList
  10. from .views.example_state import ExampleStateList
  11. urlpatterns = [
  12. path(route="assignments", view=AssignmentList.as_view(), name="assignment_list"),
  13. path(route="assignments/<uuid:assignment_id>", view=AssignmentDetail.as_view(), name="assignment_detail"),
  14. path(route="assignments/reset", view=ResetAssignment.as_view(), name="assignment_reset"),
  15. path(route="assignments/bulk_assign", view=BulkAssignment.as_view(), name="bulk_assignment"),
  16. path(route="examples", view=ExampleList.as_view(), name="example_list"),
  17. path(route="examples/<int:example_id>", view=ExampleDetail.as_view(), name="example_detail"),
  18. path(route="comments", view=CommentList.as_view(), name="comment_list"),
  19. path(route="comments/<int:comment_id>", view=CommentDetail.as_view(), name="comment_detail"),
  20. path(route="examples/<int:example_id>/states", view=ExampleStateList.as_view(), name="example_state_list"),
  21. ]