This commit is contained in:
syuilo
2018-04-13 12:05:24 +09:00
parent f3c4152a68
commit b099ad2a30
4 changed files with 18 additions and 10 deletions

View File

@ -8,6 +8,8 @@ import * as Router from 'koa-router';
import * as send from 'koa-send';
import * as favicon from 'koa-favicon';
import docs from './docs';
const client = `${__dirname}/../../client/`;
// Init app
@ -54,7 +56,7 @@ router.get('/manifest.json', async ctx => {
//#endregion
// Docs
router.use('/docs', require('./docs').routes());
router.use('/docs', docs.routes());
// URL preview endpoint
router.get('url', require('./url-preview'));