restructuring for rental requests. started double blind reviews
This commit is contained in:
@@ -78,7 +78,10 @@ export const rentalAPI = {
|
||||
getMyListings: () => api.get("/rentals/my-listings"),
|
||||
updateRentalStatus: (id: string, status: string) =>
|
||||
api.put(`/rentals/${id}/status`, { status }),
|
||||
addReview: (id: string, data: any) => api.post(`/rentals/${id}/review`, data),
|
||||
markAsCompleted: (id: string) => api.post(`/rentals/${id}/mark-completed`),
|
||||
reviewRenter: (id: string, data: any) => api.post(`/rentals/${id}/review-renter`, data),
|
||||
reviewItem: (id: string, data: any) => api.post(`/rentals/${id}/review-item`, data),
|
||||
addReview: (id: string, data: any) => api.post(`/rentals/${id}/review`, data), // Legacy
|
||||
};
|
||||
|
||||
export const messageAPI = {
|
||||
|
||||
Reference in New Issue
Block a user