from django.urls import path,include
from . import views
from rest_framework import routers

from django.conf import settings
from django.conf.urls.static import static

from .view import message_views

urlpatterns = [
    # path('',include(router.urls)),
    path('login-step-one/',views.loginOne),
    path('verify-otp/',views.verifyOtp),
    path('update-client-profile/',views.updateProfileClient),
    path('get-profile-detail/', views.getProfileDetail),
    # path('update-client-profile/',views.updateProfileClient),

    # for message section for both clients and coaches
    path('send-message/',message_views.sendMessage),
    path('list-of-users-in-chat/',message_views.listOfUsersInChat),
    path('open-chat/',message_views.openChat),
    path('open-profile/',message_views.openProfile),
    path('shared-media/',message_views.getSharedMedia),

    # notification
    path('get-notifications/', views.getNotification),
    path('update-notification/<int:noti_id>/', views.updateNotification),

    # to get booking link
    path('get-booking-link/<int:book_id>', views.getBookingLink),

    # for starting the session
    path('update-booking-status', message_views.updateBookingStatus),

    path('support', views.support),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)