Merge branch 'develop' into feature/improving

pull/25/head
Caleídoscopio 5 years ago committed by GitHub
commit 62a059c1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
# **Aruppi API** (v3.3.7)
# **Aruppi API** (v3.4.1)
> This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture
>
@ -73,7 +73,7 @@ But if you need to see the code or the operation of the old version you can do i
Aruppi has grown since it was launched and we need to continue improving the application along with the services to be able to give new features.
At this time version 2.6.8 will remain functional until Aruppi App users fully migrate to version 1.5.0 of the app
At this time version 2.6.9 will remain functional until Aruppi App users fully migrate to version 1.5.0 of the app
## **:handshake: Contributing**

2
package-lock.json generated

@ -1,6 +1,6 @@
{
"name": "aruppi",
"version": "3.3.7",
"version": "3.4.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

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

@ -443,7 +443,8 @@ const getDestAnimePlatforms = async () => {
return data.map(doc => ({
id: doc.id,
name: doc.name,
logo: doc.logo
logo: doc.logo,
link: doc.link
}));
};
@ -461,8 +462,8 @@ const getPlatforms = async (id) => {
cover: doc.cover
}));
} if (id === "producers" || id === "apps" || id === "publishers") {
} if (id === "producers" || id === "apps" || id === "publishers" || "events") {
data = await homgot(`${BASE_ARUPPI}res/documents/animelegal/type/${id}.json`, { parse: true });
return data.map(doc => ({
@ -479,7 +480,6 @@ const getPlatforms = async (id) => {
webInfo: doc.webInfo,
webpage: doc.webpage
}));
} else {
data = await homgot(`${BASE_ARUPPI}res/documents/animelegal/type/${id}.json`, { parse: true });

@ -274,7 +274,7 @@ router.get('/moreInfo/:title' , (req, res) =>{
res.status(200).json(info);
} else {
res.status(500).json({ message: 'Aruppi lost in the shell'});
}
}
}).catch((err) =>{
console.error(err);
});
@ -287,14 +287,14 @@ router.get('/getEpisodes/:title' , (req, res) =>{
api.getEpisodes(title)
.then(episodes => {
if (episodes.length > 0) {
res.status(200).json({episodes});
} else {
res.status(500).json({ message: 'Aruppi lost in the shell'});
}
}).catch((err) =>{
console.error(err);
});
@ -519,6 +519,7 @@ router.get('/randomAnime', (req, res) => {
api.getRandomAnime()
.then(anime => {
if (anime) {
res.set('Cache-Control', 'no-store');
res.status(200).json(anime);
}else {
res.status(500).json({ message: 'Aruppi lost in the shell'});

@ -8,7 +8,7 @@ router.get('/', (req, res) => {
res.json({
message: 'Aruppi API - 🎏',
author: 'Jéluchu',
version: '2.6.8',
version: '2.6.9',
credits: 'The bitch loves APIs that offers data to Aruppi App',
deprecated: 'This version will be available until users migrate to Aruppi App v1.5.0',
entries: [

Loading…
Cancel
Save