From 863f02168df2dcd612bbb35c01c21e90bd0b8fbe Mon Sep 17 00:00:00 2001 From: Clement Date: Mon, 6 May 2024 21:00:25 +0200 Subject: [PATCH] add explorer.?? --- Express/barAndCafe/src/swaggerDef.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Express/barAndCafe/src/swaggerDef.ts b/Express/barAndCafe/src/swaggerDef.ts index 07aac1d..25f8517 100644 --- a/Express/barAndCafe/src/swaggerDef.ts +++ b/Express/barAndCafe/src/swaggerDef.ts @@ -5,21 +5,22 @@ const port = parseInt(process.env.BAR_PORT || '3000') const options = { definition: { - openapi: "3.1.0", - info: { + openapi: "3.1.0", + info: { title: "LogRocket Express API with Swagger", version: "0.1.0", description: - "This is a simple CRUD API application made with Express and documented with Swagger", - }, - servers: [ - { - url: "http://localhost:"+port.toString(), + "This is a simple CRUD API application made with Express and documented with Swagger", }, - ], + servers: [ + { + url: "http://localhost:"+port.toString(), + }, + ], }, - apis: ['./src/*.ts'], - } + apis: ['./src/*.ts'], + explorer: true +} export default options \ No newline at end of file