Update lib/scrapper.js
Browse files- lib/scrapper.js +6 -1
lib/scrapper.js
CHANGED
@@ -12,7 +12,12 @@ const ParametersUrl = function (parameters) {
|
|
12 |
const Copilot2Trip = async (query) => {
|
13 |
try {
|
14 |
const url = ParametersUrl("ai/copilot2trip");
|
15 |
-
const response = await axios.get(
|
|
|
|
|
|
|
|
|
|
|
16 |
if (typeof response.data === "object") {
|
17 |
response.data.author = "xtdevs";
|
18 |
return response.data;
|
|
|
12 |
const Copilot2Trip = async (query) => {
|
13 |
try {
|
14 |
const url = ParametersUrl("ai/copilot2trip");
|
15 |
+
const response = await axios.get(
|
16 |
+
url,
|
17 |
+
params: {
|
18 |
+
q: query
|
19 |
+
}
|
20 |
+
);
|
21 |
if (typeof response.data === "object") {
|
22 |
response.data.author = "xtdevs";
|
23 |
return response.data;
|