Skip to content

Commit

Permalink
comment out swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Dec 4, 2024
1 parent 5b6adc5 commit 6435cf9
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6435cf9

Please sign in to comment.