last update

This commit is contained in:
Ehsan
2025-06-08 10:13:06 +03:30
parent 7d6a9e6e33
commit f52eb43326
13 changed files with 81 additions and 62 deletions
+11
View File
@@ -0,0 +1,11 @@
import axios from "axios";
export const fetchReq = async (url, headers) => {
try {
const response = await axios.get(url, headers);
return response.data;
} catch (error) {
console.error("fetchReq error:", error.message);
return null;
}
};