mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-16 08:26:50 +03:00
15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
import { ClashAPI, IBaseApiResponse } from '../types';
|
|
import { createBaseApiRequest } from './createBaseApiRequest';
|
|
import { getClashApiUrl } from '../../helpers';
|
|
|
|
export async function getClashProxies(): Promise<
|
|
IBaseApiResponse<ClashAPI.Proxies>
|
|
> {
|
|
return createBaseApiRequest<ClashAPI.Proxies>(() =>
|
|
fetch(`${getClashApiUrl()}/proxies`, {
|
|
method: 'GET',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
}),
|
|
);
|
|
}
|