This commit is contained in:
2026-05-11 16:24:14 +07:00
commit 6a48d6351c
313 changed files with 41936 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import axiosInstance from "../lib/axios";
export const fetchContentPageData = async <T>(
endpoint: string,
): Promise<T | null> => {
try {
const response = await axiosInstance.get<T>(endpoint);
return response.data;
} catch {
return null;
}
};