Revert "v3.4.7 - Fixed access to deprecated version"

This reverts commit 4099b3f77f.
pull/30/head
Pedro Costa 4 years ago
parent 8ede130660
commit 70e5340271

@ -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
>

@ -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": {

@ -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'
});

Loading…
Cancel
Save