diff --git a/README.md b/README.md index e8212d7..46a4134 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v3.4.7) +# **Aruppi API** (v3.4.6) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > diff --git a/package.json b/package.json index 1c184fb..293fddc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "3.4.7", + "version": "3.4.6", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.js", "scripts": { diff --git a/src/app.js b/src/app.js index 092c783..81e7394 100644 --- a/src/app.js +++ b/src/app.js @@ -39,12 +39,8 @@ app.get('/api/v1', (req, res) => { }); }); -app.get('/api/v2/*', (req, res) => { - res.redirect('/api/v2') -}); - - app.get('/api/v2', (req, res) => { + res.set('Cache-Control', 'no-cache,proxy-revalidate'); res.json({ message: 'Sorry, version v2 is not avaiable, if you want to see content go to v3' });