Pre-render ReDoc
redoc-cliはexpandResponsesは200のみとすると数値と認識されてしまい設定できないため202,204という指定にしています
This commit is contained in:
parent
9e9d378bf1
commit
795fb0eb60
11 changed files with 885 additions and 112 deletions
8
src/tools/index.ts
Normal file
8
src/tools/index.ts
Normal 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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue