😎 Encoding URI parameters in qwant call

pull/49/head
capitanwesler 4 years ago
parent 57dedd3ab5
commit f32ca2bdcf

@ -1,4 +1,4 @@
# **Aruppi API** (v4.1.1) # **Aruppi API** (v4.1.2)
> This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture
> >

@ -1,6 +1,6 @@
{ {
"name": "aruppi", "name": "aruppi",
"version": "4.1.1", "version": "4.1.2",
"description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app",
"main": "./src/api/api.ts", "main": "./src/api/api.ts",
"scripts": { "scripts": {

@ -231,7 +231,9 @@ export default class UtilsController {
} }
data = await requestGot( data = await requestGot(
`${urls.BASE_QWANT}count=51&q=${title}&t=images&safesearch=1&locale=es_ES&uiv=4`, encodeURI(
`{urls.BASE_QWANT}t=images&q=${title}&count=51&locale=es_ES&safesearch=1`,
),
{ scrapy: false, parse: true }, { scrapy: false, parse: true },
); );
} catch (err) { } catch (err) {

@ -26,7 +26,7 @@ routes.get('/api/v4/', (req: Request, res: Response) => {
res.json({ res.json({
message: 'Aruppi /api - 🎏', message: 'Aruppi /api - 🎏',
author: 'Jéluchu', author: 'Jéluchu',
version: '4.1.1', version: '4.1.2',
credits: 'The bitch loves /apis that offers data to Aruppi App', credits: 'The bitch loves /apis that offers data to Aruppi App',
entries: [ entries: [
{ {

Loading…
Cancel
Save