14 lines
412 B
TypeScript
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 };
|