AI_Chatbot / urls.py
embedingHF's picture
Update urls.py
c2e4ff1 verified
Raw
History Blame Contribute Delete
1.13 kB
from django.urls import path
from . import views
urlpatterns = [
# Admin Global Q&A CRUD
path('admin/global-qa/', views.admin_global_qa),
path('admin/global-qa/<uuid:qa_id>/', views.admin_global_qa),
path('admin/global-qa/bulk/', views.admin_global_qa_bulk),
# Admin CRUD (Single)
path('admin/master-questions/', views.admin_master_questions),
path('admin/master-questions/<uuid:question_id>/', views.admin_master_questions),
# Admin Bulk Create
path('admin/master-questions/bulk/', views.admin_master_questions_bulk),
# Agency endpoints
path('master-questions/', views.get_master_questions),
path('property-qa/save-bulk/', views.save_property_qa_bulk),
path('property-qa/status/<uuid:property_id>/', views.get_property_qa_status),
path('auto-chat/toggle/<str:property_id>/', views.toggle_auto_chat),
path('auto-chat/enable-with-questions/', views.enable_auto_chat_with_questions),
path('custom-questions/<uuid:property_id>/', views.get_custom_questions),
# Webhook for Chat app
path('webhook/auto-reply/', views.webhook_auto_reply),
]