Refactor the startMeeting and endMeeting functions in api_urls.ts to point to the correct API paths for meeting management. This change ensures consistency in the API structure and aligns with the overall meeting control functionality.
37 lines
1.8 KiB
TypeScript
37 lines
1.8 KiB
TypeScript
// Get API base URL from environment variable
|
|
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
|
|
|
|
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/`,
|
|
allUsers: `${API_BASE_URL}/auth/all-users/`,
|
|
getProfile: `${API_BASE_URL}/auth/profile/`,
|
|
updateProfile: `${API_BASE_URL}/auth/profile/update/`,
|
|
contact: `${API_BASE_URL}/auth/contact/`,
|
|
},
|
|
meetings: {
|
|
base: `${API_BASE_URL}/meetings/`,
|
|
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/`,
|
|
userAppointmentStats: `${API_BASE_URL}/meetings/user/appointments/stats/`,
|
|
adminAvailability: `${API_BASE_URL}/meetings/admin/availability/`,
|
|
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/`,
|
|
startMeeting: (id: string) => `${API_BASE_URL}/meetings/meetings/${id}/start/`,
|
|
endMeeting: (id: string) => `${API_BASE_URL}/meetings/meetings/${id}/end/`,
|
|
},
|
|
} as const;
|
|
|