Skip to content

Commit

Permalink
Merge pull request #129 from Giveth/comment-out-swagger
Browse files Browse the repository at this point in the history
comment out swagger
  • Loading branch information
kkatusic authored Dec 4, 2024
2 parents 5b6adc5 + 5e0de38 commit 981335c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "tsc --project ./",
"prestart": "npm run swagger",
"swagger": "tsoa spec",
"prebuild": "npm run swagger",
"start": "NODE_ENV=development ts-node-dev --project ./tsconfig.json --respawn ./src/index.ts",
"test": "NODE_ENV=test mocha -t 30000 --exit -r ts-node/register ./test/pre-test-scripts.ts ./src/**/*.test.ts ./src/**/**/*.test.ts",
"test:notificationRepository": "NODE_ENV=test mocha -t 30000 --exit -r ts-node/register ./test/pre-test-scripts.ts ./src/repositories/notificationRepository.test.ts",
Expand Down
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 981335c

Please sign in to comment.