Pre-render ReDoc

redoc-cliはexpandResponsesは200のみとすると数値と認識されてしまい設定できないため202,204という指定にしています
This commit is contained in:
tamaina 2020-04-03 17:13:41 +09:00
parent 9e9d378bf1
commit 795fb0eb60
11 changed files with 885 additions and 112 deletions

8
src/tools/index.ts Normal file
View file

@ -0,0 +1,8 @@
import { initDb } from '../db/postgre';
import 'reflect-metadata';
console.log('Connecting DB...')
initDb().then(() => {
console.log('Connedted!')
require(`./${process.argv[2]}`).default();
});