Fix route on Future Seasons - v2.2.1

pull/1/head
Jéluchu 5 years ago
parent b7f8574851
commit e89455d62d

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

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

@ -142,10 +142,10 @@ router.get('/allSeasons' , (req, res) =>{
router.get('/laterSeasons' , (req, res) =>{
api.laterSeasons()
.then(archive =>{
if (archive.length > 0) {
.then(future =>{
if (future.length > 0) {
res.status(200).json({
archive
future
});
} else (
res.status(500).json({ message: 'Aruppi lost in the shell'})

Loading…
Cancel
Save