diff --git a/package.json b/package.json index 9c018b9..e5594b5 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "tsc --project ./", "prestart": "npm run swagger", "swagger": "tsoa spec", + "prebuild": "npm run swagger", "start": "NODE_ENV=development ts-node-dev --project ./tsconfig.json --respawn ./src/index.ts", "test": "NODE_ENV=test mocha -t 30000 --exit -r ts-node/register ./test/pre-test-scripts.ts ./src/**/*.test.ts ./src/**/**/*.test.ts", "test:notificationRepository": "NODE_ENV=test mocha -t 30000 --exit -r ts-node/register ./test/pre-test-scripts.ts ./src/repositories/notificationRepository.test.ts", diff --git a/src/server.ts b/src/server.ts index 06d2bf1..dccd037 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,5 +1,4 @@ import express, { Application } from 'express'; -import swaggerUi from 'swagger-ui-express'; import { DataSource } from 'typeorm'; import bodyParser from 'body-parser'; import cors from 'cors'; @@ -58,15 +57,15 @@ export const initServer = async () => { app.use(cors(corsOptions)); app.use(bodyParser.json()); - app.use( - '/docs', - swaggerUi.serve, - swaggerUi.setup(undefined, { - swaggerOptions: { - url: '/swagger.json', - }, - }), - ); + // app.use( + // '/docs', + // swaggerUi.serve, + // swaggerUi.setup(undefined, { + // swaggerOptions: { + // url: '/swagger.json', + // }, + // }), + // ); app.use(v1Router);