diff --git a/index.js b/index.js index 6679c1f..a608b6c 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,10 @@ app.any('/docs/*file').to('docs#index', {file: null}); app.any('/news/*file').to('news#index'); +app.get('/api', async ctx => { + await ctx.redirectTo('https://mojojs.org/static/reference/modules.html'); +}); + app.get('/', async ctx => { await ctx.render({view: 'index'}); }); diff --git a/views/menubar.html.tmpl b/views/menubar.html.tmpl index f664aa5..003b4fc 100644 --- a/views/menubar.html.tmpl +++ b/views/menubar.html.tmpl @@ -29,7 +29,7 @@ FAQ Cheatsheet - API + API