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.
33 lines
1.5 KiB
33 lines
1.5 KiB
from django.urls import path
|
|
from apps.profiles.views import (
|
|
InstitutionListCreateView,
|
|
InstitutionDetailView,
|
|
InstitutionTimelineView,
|
|
InstitutionTimelineDetailView,
|
|
InstitutionMediaView,
|
|
InstitutionMediaDetailView,
|
|
InstitutionFollowToggleView,
|
|
InstitutionMembersView,
|
|
InstitutionMemberDetailView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
# Organization Profiles CRUD & Search
|
|
path('', InstitutionListCreateView.as_view(), name='institution_list_create'),
|
|
path('<str:pk_or_slug>/', InstitutionDetailView.as_view(), name='institution_detail'),
|
|
|
|
# Historical Timeline Milestones
|
|
path('<str:pk_or_slug>/timeline/', InstitutionTimelineView.as_view(), name='institution_timeline'),
|
|
path('<str:pk_or_slug>/timeline/<int:entry_id>/', InstitutionTimelineDetailView.as_view(), name='institution_timeline_detail'),
|
|
|
|
# Photo & Video Media Gallery
|
|
path('<str:pk_or_slug>/media/', InstitutionMediaView.as_view(), name='institution_media'),
|
|
path('<str:pk_or_slug>/media/<int:media_id>/', InstitutionMediaDetailView.as_view(), name='institution_media_detail'),
|
|
|
|
# Follower Subscriptions
|
|
path('<str:pk_or_slug>/follow/', InstitutionFollowToggleView.as_view(), name='institution_follow_toggle'),
|
|
|
|
# Team & Role Delegation
|
|
path('<str:pk_or_slug>/members/', InstitutionMembersView.as_view(), name='institution_members'),
|
|
path('<str:pk_or_slug>/members/<int:member_id>/', InstitutionMemberDetailView.as_view(), name='institution_member_detail'),
|
|
]
|