mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-10 13:36:52 +03:00
14 lines
403 B
TypeScript
14 lines
403 B
TypeScript
import { ClashAPI, IBaseApiResponse } from '../types';
|
|
import { createBaseApiRequest } from './createBaseApiRequest';
|
|
|
|
export async function getClashConfig(): Promise<
|
|
IBaseApiResponse<ClashAPI.Config>
|
|
> {
|
|
return createBaseApiRequest<ClashAPI.Config>(() =>
|
|
fetch('http://192.168.160.129:9090/configs', {
|
|
method: 'GET',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
}),
|
|
);
|
|
}
|