|
18 | 18 | election_detail_candidates_api, |
19 | 19 | election_detail_eligible_voters_api, |
20 | 20 | election_detail_ineligible_voters_api, |
21 | | - election_detail_info_api, |
22 | 21 | election_detail_page_api, |
23 | 22 | elections_api, |
24 | 23 | ) |
|
50 | 49 | ) |
51 | 50 | from core.views_mail_images import email_images_detail_api |
52 | 51 | from core.views_membership.admin import ( |
53 | | - stats_membership_composition_charts_api, |
54 | | - stats_membership_retention_chart_api, |
55 | 52 | stats_membership_summary_api, |
56 | | - stats_membership_trends_charts_api, |
57 | 53 | ) |
58 | 54 | from core.views_membership_admin import ( |
59 | 55 | membership_audit_log_detail_api, |
60 | 56 | stats_membership_composition_charts_detail_api, |
61 | 57 | stats_membership_retention_chart_detail_api, |
62 | 58 | stats_membership_trends_charts_detail_api, |
63 | 59 | ) |
64 | | -from core.views_organizations import organization_detail_api, organization_detail_page_api, organizations_api |
| 60 | +from core.views_organizations import organization_detail_page_api, organizations_api |
65 | 61 | from core.views_registration import ( |
66 | 62 | register_activate_detail_api, |
67 | 63 | register_confirm_detail_api, |
|
74 | 70 | email_template_edit_detail_api, |
75 | 71 | email_templates_detail_api, |
76 | 72 | ) |
77 | | -from core.views_users import user_profile_api, user_profile_detail_api, users_api |
| 73 | +from core.views_users import user_profile_detail_api, users_api |
78 | 74 |
|
79 | 75 | urlpatterns = [ |
80 | 76 | path( |
81 | 77 | "users", |
82 | 78 | users_api, |
83 | 79 | name="api-users", |
84 | 80 | ), |
85 | | - path( |
86 | | - "users/<str:username>/profile", |
87 | | - user_profile_api, |
88 | | - name="api-user-profile", |
89 | | - ), |
90 | 81 | path( |
91 | 82 | "users/<str:username>/profile/detail", |
92 | 83 | user_profile_detail_api, |
93 | 84 | name="api-user-profile-detail", |
94 | 85 | ), |
95 | | - path( |
96 | | - "organizations/<int:organization_id>", |
97 | | - organization_detail_api, |
98 | | - name="api-organization-detail", |
99 | | - ), |
100 | 86 | path( |
101 | 87 | "organizations/<int:organization_id>/detail", |
102 | 88 | organization_detail_page_api, |
|
142 | 128 | elections_api, |
143 | 129 | name="api-elections", |
144 | 130 | ), |
145 | | - path( |
146 | | - "elections/<int:election_id>/info", |
147 | | - election_detail_info_api, |
148 | | - name="api-election-detail-info", |
149 | | - ), |
150 | 131 | path( |
151 | 132 | "elections/<int:election_id>/detail", |
152 | 133 | election_detail_page_api, |
|
454 | 435 | name="api-account-invitations-bulk", |
455 | 436 | ), |
456 | 437 | # Stats API endpoints |
457 | | - path( |
458 | | - "stats/membership/summary", |
459 | | - stats_membership_summary_api, |
460 | | - name="api-stats-membership-summary", |
461 | | - ), |
462 | 438 | path( |
463 | 439 | "stats/membership/summary/detail", |
464 | 440 | stats_membership_summary_api, |
465 | 441 | name="api-stats-membership-summary-detail", |
466 | 442 | ), |
467 | | - path( |
468 | | - "stats/membership/charts/composition", |
469 | | - stats_membership_composition_charts_api, |
470 | | - name="api-stats-membership-composition-charts", |
471 | | - ), |
472 | 443 | path( |
473 | 444 | "stats/membership/charts/composition/detail", |
474 | 445 | stats_membership_composition_charts_detail_api, |
475 | 446 | name="api-stats-membership-composition-charts-detail", |
476 | 447 | ), |
477 | | - path( |
478 | | - "stats/membership/charts/trends", |
479 | | - stats_membership_trends_charts_api, |
480 | | - name="api-stats-membership-trends-charts", |
481 | | - ), |
482 | 448 | path( |
483 | 449 | "stats/membership/charts/trends/detail", |
484 | 450 | stats_membership_trends_charts_detail_api, |
485 | 451 | name="api-stats-membership-trends-charts-detail", |
486 | 452 | ), |
487 | | - path( |
488 | | - "stats/membership/charts/retention", |
489 | | - stats_membership_retention_chart_api, |
490 | | - name="api-stats-membership-retention-chart", |
491 | | - ), |
492 | 453 | path( |
493 | 454 | "stats/membership/charts/retention/detail", |
494 | 455 | stats_membership_retention_chart_detail_api, |
|
0 commit comments