parent
39ad43bbb2
commit
9fc282d858
|
@ -41,7 +41,6 @@
|
|||
"routing-controllers": "^0.9.0-alpha.6",
|
||||
"routing-controllers-openapi": "^2.1.0",
|
||||
"sqlite3": "^5.0.0",
|
||||
"swagger-ui-express": "^4.1.5",
|
||||
"typeorm": "^0.2.29",
|
||||
"typeorm-routing-controllers-extensions": "^0.2.0",
|
||||
"typeorm-seeding": "^1.6.1",
|
||||
|
@ -55,7 +54,6 @@
|
|||
"@types/jest": "^26.0.16",
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
"@types/node": "^14.14.9",
|
||||
"@types/swagger-ui-express": "^4.1.2",
|
||||
"@types/uuid": "^8.3.0",
|
||||
"axios": "^0.21.0",
|
||||
"jest": "^26.6.3",
|
||||
|
|
|
@ -45,16 +45,6 @@ export default async (app: Application) => {
|
|||
},
|
||||
}
|
||||
);
|
||||
|
||||
// //Options for swaggerUiExpress
|
||||
// const options = {
|
||||
// explorer: true,
|
||||
// };
|
||||
// app.use(
|
||||
// "/api/docs/swagger",
|
||||
// swaggerUiExpress.serve,
|
||||
// swaggerUiExpress.setup(spec, options)
|
||||
// );
|
||||
app.get(["/api/docs/openapi.json", "/api/docs/swagger.json"], (req, res) => {
|
||||
res.json(spec);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue