refactor:change in the image path

This commit is contained in:
rishalkv
2026-04-24 17:27:15 +05:30
parent 6001a2db64
commit c6fbd0dc30
2 changed files with 10 additions and 14 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import apiClient from "@/api/client";
export const getNewsApi = async (page = 1, limit = 10) => {
export const getNewsApi = async (page = 1, limit = 10, search = "") => {
const res = await apiClient.get(
`/newsMedia/getAll?page=${page}&limit=${limit}`,
`/newsMedia/getAll?page=${page}&limit=${limit}&search=${search}`,
);
return res.data;
};