2025-11-23 13:29:31 +00:00
|
|
|
// Get API base URL from environment variable
|
2025-11-25 17:26:30 +00:00
|
|
|
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
|
2025-11-23 13:29:31 +00:00
|
|
|
|
|
|
|
|
export const API_ENDPOINTS = {
|
|
|
|
|
auth: {
|
|
|
|
|
base: `${API_BASE_URL}/auth/`,
|
|
|
|
|
register: `${API_BASE_URL}/auth/register/`,
|
|
|
|
|
verifyOtp: `${API_BASE_URL}/auth/verify-otp/`,
|
|
|
|
|
login: `${API_BASE_URL}/auth/login/`,
|
|
|
|
|
resendOtp: `${API_BASE_URL}/auth/resend-otp/`,
|
|
|
|
|
forgotPassword: `${API_BASE_URL}/auth/forgot-password/`,
|
|
|
|
|
verifyPasswordResetOtp: `${API_BASE_URL}/auth/verify-password-reset-otp/`,
|
|
|
|
|
resetPassword: `${API_BASE_URL}/auth/reset-password/`,
|
|
|
|
|
tokenRefresh: `${API_BASE_URL}/auth/token/refresh/`,
|
2025-11-23 22:28:02 +00:00
|
|
|
allUsers: `${API_BASE_URL}/auth/all-users/`,
|
2025-11-25 21:25:53 +00:00
|
|
|
getProfile: `${API_BASE_URL}/auth/profile/`,
|
|
|
|
|
updateProfile: `${API_BASE_URL}/auth/profile/update/`,
|
2025-12-01 17:35:28 +00:00
|
|
|
contact: `${API_BASE_URL}/auth/contact/`,
|
2025-11-23 13:29:31 +00:00
|
|
|
},
|
|
|
|
|
meetings: {
|
|
|
|
|
base: `${API_BASE_URL}/meetings/`,
|
2025-11-23 21:43:13 +00:00
|
|
|
availableDates: `${API_BASE_URL}/meetings/appointments/available-dates/`,
|
|
|
|
|
createAppointment: `${API_BASE_URL}/meetings/appointments/create/`,
|
|
|
|
|
listAppointments: `${API_BASE_URL}/meetings/appointments/`,
|
|
|
|
|
userAppointments: `${API_BASE_URL}/meetings/user/appointments/`,
|
2025-11-25 21:25:53 +00:00
|
|
|
userAppointmentStats: `${API_BASE_URL}/meetings/user/appointments/stats/`,
|
2025-11-25 20:15:37 +00:00
|
|
|
adminAvailability: `${API_BASE_URL}/meetings/admin/availability/`,
|
2025-11-27 19:18:59 +00:00
|
|
|
weeklyAvailability: `${API_BASE_URL}/meetings/availability/weekly/`,
|
|
|
|
|
availabilityConfig: `${API_BASE_URL}/meetings/availability/config/`,
|
|
|
|
|
checkDateAvailability: `${API_BASE_URL}/meetings/availability/check/`,
|
|
|
|
|
availabilityOverview: `${API_BASE_URL}/meetings/availability/overview/`,
|
2025-12-04 15:36:14 +00:00
|
|
|
startMeeting: (id: string) => `${API_BASE_URL}/meetings/appointments/${id}/start/`,
|
|
|
|
|
endMeeting: (id: string) => `${API_BASE_URL}/meetings/appointments/${id}/end/`,
|
2025-11-23 13:29:31 +00:00
|
|
|
},
|
|
|
|
|
} as const;
|
|
|
|
|
|