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.

34 lines
814 B

  1. from django.urls import path
  2. from .views.example import ExampleList, ExampleDetail
  3. from .views.comment import CommentList, CommentDetail
  4. from .views.example_state import ExampleStateList
  5. urlpatterns = [
  6. path(
  7. route='examples',
  8. view=ExampleList.as_view(),
  9. name='example_list'
  10. ),
  11. path(
  12. route='examples/<int:example_id>',
  13. view=ExampleDetail.as_view(),
  14. name='example_detail'
  15. ),
  16. path(
  17. route='comments',
  18. view=CommentList.as_view(),
  19. name='comment_list'
  20. ),
  21. path(
  22. route='comments/<int:comment_id>',
  23. view=CommentDetail.as_view(),
  24. name='comment_detail'
  25. ),
  26. path(
  27. route='examples/<int:example_id>/states',
  28. view=ExampleStateList.as_view(),
  29. name='example_state_list'
  30. ),
  31. ]