crism
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import axios from "../../../config/axios";
|
||||
|
||||
export const getCriticismsList = async (page: number) => {
|
||||
const { data } = await axios.get(`/criticisms?page=${page}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getCriticismsDetail = async (id: string) => {
|
||||
const { data } = await axios.get(`/criticisms/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const deleteCriticisms = async (id: string) => {
|
||||
const { data } = await axios.delete(`/criticisms/${id}`);
|
||||
return data;
|
||||
};
|
||||
Reference in New Issue
Block a user