pagination
This commit is contained in:
@@ -29,8 +29,8 @@ export const getBlogCategoryDetail = async (id: string) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getBlogs = async (search: string) => {
|
||||
const { data } = await axios.get(`/blogs/list?q=${search}`);
|
||||
export const getBlogs = async (search: string, page: number) => {
|
||||
const { data } = await axios.get(`/blogs/list?q=${search}&page=${page}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user