Public API docs

This commit is contained in:
Jori Lallo
2017-11-13 22:59:45 -08:00
parent 4059fefe1d
commit a99628b2d5
3 changed files with 203 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import renderpage from './utils/renderpage';
import Home from './pages/Home';
import About from './pages/About';
import Pricing from './pages/Pricing';
import Api from './pages/Api';
const isProduction = process.env.NODE_ENV === 'production';
const koa = new Koa();
@ -46,6 +47,7 @@ if (process.env.NODE_ENV === 'production') {
// static pages
router.get('/about', ctx => renderpage(ctx, <About />));
router.get('/pricing', ctx => renderpage(ctx, <Pricing />));
router.get('/developers', ctx => renderpage(ctx, <Api />));
// home page
router.get('/', async ctx => {