CrunchyDL/components/Crunchyroll/Proxy.ts

10 lines
235 B
TypeScript
Raw Normal View History

2024-05-20 02:44:14 +02:00
import type { Proxies } from './Types'
export async function getProxies() {
const { data, error } = await useFetch<Proxies>('http://localhost:9941/api/service/proxies', {
2024-05-20 02:44:14 +02:00
method: 'GET'
})
return { data, error }
2024-05-20 02:44:14 +02:00
}