mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-27 06:21:18 -07:00
wrapped proxy calls via useWidgetAPI
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import useSWR from "swr";
|
||||
|
||||
import { formatProxyUrl } from "./api-helpers";
|
||||
|
||||
export default function useWidgetAPI(widget, ...options) {
|
||||
return useSWR(formatProxyUrl(widget, ...options));
|
||||
}
|
||||
Reference in New Issue
Block a user