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.

16 lines
929 B

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