v3.4.7 - Fixed access to deprecated version

v3 v3.4.7
Jéluchu 4 years ago
parent 18583af315
commit 4099b3f77f

@ -1,4 +1,4 @@
# **Aruppi API** (v3.4.6) # **Aruppi API** (v3.4.7)
> 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": "3.4.6", "version": "3.4.7",
"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": {

@ -39,8 +39,12 @@ app.get('/api/v1', (req, res) => {
}); });
}); });
app.get('/api/v2/*', (req, res) => {
res.redirect('/api/v2')
});
app.get('/api/v2', (req, res) => { app.get('/api/v2', (req, res) => {
res.set('Cache-Control', 'no-cache,proxy-revalidate');
res.json({ res.json({
message: 'Sorry, version v2 is not avaiable, if you want to see content go to v3' message: 'Sorry, version v2 is not avaiable, if you want to see content go to v3'
}); });

Loading…
Cancel
Save