From 70e5340271c4ccacdee106df55d58cdc970931db Mon Sep 17 00:00:00 2001 From: Pedro Costa <61250854+capitanwesler@users.noreply.github.com> Date: Fri, 12 Mar 2021 13:47:44 +0000 Subject: [PATCH] Revert "v3.4.7 - Fixed access to deprecated version" This reverts commit 4099b3f77f296ff4f7a4336b105055a75efe0a95. --- README.md | 2 +- package.json | 2 +- src/app.js | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) 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' });