connect / api /urls.py
thejagstudio's picture
Refactor bhajanDetail view and URL pattern for improved clarity and consistency
6b9394e
from django.urls import path
from . import views
from rest_framework_simplejwt.views import TokenRefreshView
urlpatterns = [
path("login/", views.login, name="login"),
path("logout/", views.logout, name="logout"),
path("get-user-profile/", views.get_user_profile, name="get_user_profile"),
path("profile-updater/", views.profile_updater, name="profile_updater"),
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("dataEntry/", views.dataEntry, name="dataEntry"),
path("send-notification/", views.send_notification, name="send_notification"),
path("bhajan-list/<str:catLink>", views.bhajanList, name="bhajanList"),
path("bhajan-category-list/", views.bhajanCategoryList, name="bhajanCategoryList"),
path(
"bhajan-detail/<int:bhajanId>",
views.bhajanDetail,
name="bhajanDetail",
),
path("event-list/", views.eventList, name="eventList"),
path("bhakto-list/", views.bhaktoList, name="bhaktoList"),
path("notification/", views.notification, name="notification"),
path("push-subscription/", views.save_push_subscription, name="push_subscription"),
path("send-otp/", views.send_otp, name="send_otp"),
path("verify-otp/", views.verify_otp, name="verify_otp"),
path("change-password/", views.change_password, name="change_password"),
path("polls/", views.polls, name="polls"),
path("poll-voters/<int:id>", views.voterList, name="voterList"),
]