export async function getTopPosts() {
    try {
        const response = await fetch('https://developer.sailpoint.com/discuss/top.json');
        return await response.json();
    } catch (error) {
        return [];
    }
}