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
1006 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. from django.urls import path
  2. from .views.member import MemberDetail, MemberList, MyRole
  3. from .views.project import CloneProject, ProjectDetail, ProjectList
  4. from .views.tag import TagDetail, TagList
  5. urlpatterns = [
  6. path(route="projects", view=ProjectList.as_view(), name="project_list"),
  7. path(route="projects/<int:project_id>", view=ProjectDetail.as_view(), name="project_detail"),
  8. path(route="projects/<int:project_id>/my-role", view=MyRole.as_view(), name="my_role"),
  9. path(route="projects/<int:project_id>/tags", view=TagList.as_view(), name="tag_list"),
  10. path(route="projects/<int:project_id>/tags/<int:tag_id>", view=TagDetail.as_view(), name="tag_detail"),
  11. path(route="projects/<int:project_id>/members", view=MemberList.as_view(), name="member_list"),
  12. path(route="projects/<int:project_id>/clone", view=CloneProject.as_view(), name="clone_project"),
  13. path(route="projects/<int:project_id>/members/<int:member_id>", view=MemberDetail.as_view(), name="member_detail"),
  14. ]