Commit 9a88ef24 authored by Daniel Perez's avatar Daniel Perez
Browse files

Adding extra option in swagger

parent 90943d55
Pipeline #35740 passed with stages
in 5 minutes and 48 seconds
...@@ -78,10 +78,9 @@ export class Server { ...@@ -78,10 +78,9 @@ export class Server {
this.app.disable('x-powered-by'); this.app.disable('x-powered-by');
this.app.use(cors(this.corsOptions)); this.app.use(cors(this.corsOptions));
this.app.options('*', cors()); this.app.options('*', cors());
this.app.use('/seistore-svc/api/v3/swagger-new-ui.html',swaggerUi.serve, swaggerUi.setup(swaggerDocument,{ this.app.use('/seistore-svc/api/v3/swagger-ui.html',swaggerUi.serve, swaggerUi.setup(swaggerDocument,{
explorer: false,
customCss: '.swagger-ui .topbar { display: none }' customCss: '.swagger-ui .topbar { display: none }'
})); }));
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
// not required anymore - to verify // not required anymore - to verify
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment