Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Please make sure you have the right versions and download both packages. You can
node --version

# Check Mongo version
mongo --version
mongo --version OR db.version() after launching mongo.exe in prompt cmd
```

### Instructions
Expand Down
2 changes: 2 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const cors = require('cors')
const swaggerUi = require('swagger-ui-express')
const yaml = require('yamljs')
const swaggerDocs = yaml.load('./swagger.yaml')
const swaggerDocs2 = yaml.load('./swagger2.yaml')
const dbConnection = require('./database/connection')

dotEnv.config()
Expand All @@ -27,6 +28,7 @@ app.use('/api/v1/user', require('./routes/userRoutes'))
// API Documentation
if (process.env.NODE_ENV !== 'production') {
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs))
app.use('/api-docs2', swaggerUi.serve, swaggerUi.setup(swaggerDocs2))
}

app.get('/', (req, res, next) => {
Expand Down
Loading