pagination

This commit is contained in:
hamid zarghami
2025-05-12 11:43:48 +03:30
parent 052280a009
commit cad29d587c
16 changed files with 90 additions and 33 deletions
+2 -2
View File
@@ -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;
};