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.

13 lines
669 B

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