summaryrefslogtreecommitdiff
path: root/server/js/apibay.js
blob: e141259196c3246e912282c362a7e746cba652c5 (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};