blob: 74fcfb3e5a21e356f9d5ca8d503bc07f5c82bd9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"use strict";
const axios = require('axios');
const server = 'https://apibay.org';
async function getRequest(url)
{
return await axios.get(url);
}
async function hit(query)
{
return await getRequest(server + '/q.php?q=' + encodeURI(query));
}
module.exports = {hit};
|