Conversion_Kitchen_Code/kitchen_counter/centralizePayment/urls.py

49 lines
2.3 KiB
Python
Executable File

from django.urls import include, path
from django.views.generic import TemplateView
from rest_framework.routers import DefaultRouter
from . import views
# Register Router
router = DefaultRouter()
# register route ---> Rest API
router.register('user-data', views.CPUserViewSet, basename='cp_user_data')
router.register('central-payment-data', views.CPAdminViewSet, basename='central_payment_data')
# django urls
urlpatterns = [
path('api/v1/', include(router.urls)),
path('users/cliamed/<str:pk>/', views.ClimedRefund.as_view(),name="cp-users-claim-actions"),
path('admin/actions/', views.AdminAction.as_view(),name="cp-admin-actions"),
path('centralproject/', views.projectcenterdiscountHandler,name="projectcenterdiscountHandler"),
# path('juggernautapi/', views.juggernautapi, name="juggernautapi"),
# path('juggernautapi/<str:pk>/', views.juggernautapi, name="juggernautapi"),
# path('juggernautprojectcenterapi/', views.juggernaut_project_center_api, name="juggernautprojectcenterapi"),
# path('juggernautprojectcenterapi/<str:pk>/', views.juggernaut_project_center_api, name="juggernautprojectcenterapi"),
# path('juggernautnarrationapi/', views.juggernaut_narration_api, name="juggernautnarrationapi"),
# path('juggernautnarrationapi/<str:pk>/', views.juggernaut_narration_api, name="juggernautnarrationapi"),
# path('juggernautpitchdeckapi/', views.juggernaut_pitchdeck_api, name="juggernautpitchdeckapi"),
# path('juggernautpitchdeckapi/<str:pk>/', views.juggernaut_pitchdeck_api, name="juggernautpitchdeckapi"),
# path('juggernautconversionapi/', views.juggernaut_conversion_api, name="juggernautconversionapi"),
# path('juggernautconversionapi/<str:pk>/', views.juggernaut_conversion_api, name="juggernautconversionapi"),
# path('juggernautsubtitleapi/', views.juggernaut_subtitle_api, name="juggernautsubtitleapi"),
# path('juggernautsubtitleapi/<str:pk>/', views.juggernaut_subtitle_api, name="juggernautsubtitleapi"),
# path('juggernautbeatsheetapi/', views.juggernaut_beatsheet_api, name="juggernautbeatsheetapi"),
# path('juggernautbeatsheetapi/<str:pk>/', views.juggernaut_beatsheet_api, name="juggernautbeatsheetapi"),
path('test/', views.paymentTestView.as_view(), name="teest"),
]