From 9fc282d858d08ccc0a4e546bf149219f13b0fb12 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 23 Dec 2020 15:21:55 +0100 Subject: [PATCH] Removed everything concerning the swaggerUI express middleware ref #52 --- package.json | 2 -- src/loaders/openapi.ts | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/package.json b/package.json index 869d7e1..b208b26 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/loaders/openapi.ts b/src/loaders/openapi.ts index d20e2d7..84d0939 100644 --- a/src/loaders/openapi.ts +++ b/src/loaders/openapi.ts @@ -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); });