backend routes

This commit is contained in:
2025-05-29 12:35:24 +03:00
parent 6987560a37
commit 327acdd062
10 changed files with 119 additions and 10 deletions

View File

@@ -15,7 +15,8 @@ CityView,
CountryView,
GetMembershipData,
ChangeUserMembership,
LeadViewSet)
LeadViewSet,
PremiumMembershipActionsView)
from api.search.views import SearchRouteListView
@@ -35,6 +36,8 @@ urlpatterns = [
path("v1/account/change_main_data/", AccountActionsView.as_view({'patch':'change_data_main_tab'}), name='change_data_main_tab'),
path("v1/account/routes/", AccountActionsView.as_view({'get':'user_routes'}), name='user_routes'),
path("v1/account/create_route/", AccountActionsView.as_view({'post':'create_route'}), name='create_route'),
path("v1/account/highlight/", PremiumMembershipActionsView.as_view({'patch':'highlight_route'}), name='highlight_route'),
path("v1/account/upper/", PremiumMembershipActionsView.as_view({'patch':'upper_route'}), name='upper_route'),
path("v1/account/send_lead/", LeadViewSet.as_view({'post':'send_lead'}), name='send_lead'),
path("v1/account/leads/", LeadViewSet.as_view({'get':'get_leads'}), name='get_leads'),