fix: Impliment redirect for /static/api -> /apidoc

This commit is contained in:
Blade Barringer
2016-05-23 22:06:06 -05:00
parent 1f3bd45471
commit f9b759ae57
2 changed files with 9 additions and 58 deletions

View File

@@ -48,6 +48,15 @@ _.each(staticPages, (name) => {
};
});
api.redirectApi = {
method: 'GET',
url: '/static/api',
runCron: false,
async handler (req, res) {
res.redirect(301, '/apidoc');
},
};
let shareables = ['level-up', 'hatch-pet', 'raise-pet', 'unlock-quest', 'won-challenge', 'achievement'];
_.each(shareables, (name) => {