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 > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture
> >

@ -1,6 +1,6 @@
{ {
"name": "aruppi", "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", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app",
"main": "./src/api/api.js", "main": "./src/api/api.js",
"scripts": { "scripts": {

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

Loading…
Cancel
Save