mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
11 lines
277 B
TypeScript
11 lines
277 B
TypeScript
import { useQuery } from '@tanstack/react-query';
|
|
|
|
export const useGetRssFeed = (feedUrl: string) =>
|
|
useQuery({
|
|
queryKey: ['rss-feed', feedUrl],
|
|
queryFn: async () => {
|
|
const response = await fetch('/api/modules/rss');
|
|
return response.json();
|
|
},
|
|
});
|