link_chang/src/api/api.ts
2023-03-22 23:01:13 +08:00

14 lines
412 B
TypeScript

import { api } from 'src/boot/axios';
class getdata {
async get_server() {
return await api.get('https://api.shagain.club/api.php?type=list');
}
async text_server(url: string) {
return await api.post('https://api.shagain.club/textserver', { url });
}
async get_country(ip: string) {
return await api.post('https://api.shagain.club/api.php?type=searchip', { ip });
}
}
export { getdata };