8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import { giveRatingPayload } from '@interfaces';
|
|
import { apiClient } from '@services';
|
|
|
|
export const giveRatingApi = async (id: string, payload: giveRatingPayload) => {
|
|
const response = await apiClient.post(`/products/${id}/ratings`, payload);
|
|
return response;
|
|
};
|