Updated
This commit is contained in:
@@ -17,7 +17,7 @@ const useGetProduct = (id: string | number | undefined) => {
|
||||
// methods
|
||||
|
||||
const handleGetProduct = async (id: string | number | undefined) => {
|
||||
const { data } = await axios.get<GetProductResponse>(`${API_ENDPOINTS.product.get}/${id}`);
|
||||
const { data } = await axios.get<GetProductResponse>(`${API_ENDPOINTS.product.get}/${id}/`);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user