forked from UKSOURCE/ipv6
init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user