randydev commited on
Commit
75bb91d
·
verified ·
1 Parent(s): 58578c6

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
index.js CHANGED
@@ -1,4 +1,5 @@
1
  import express from 'express';
 
2
  const app = express()
3
 
4
  import * as swaggerUi from 'swagger-ui-express';
@@ -14,7 +15,7 @@ import { router as exampleRouter } from './routes/example.js';
14
  const CheckMilWares = new CheckMilWare();
15
 
16
  app.use('/api', exampleRouter);
17
- app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
18
 
19
  app.get('/', (req, res) => {
20
  res.redirect('https://t.me/RendyProjects');
 
1
  import express from 'express';
2
+ import swaggerDocument from './swagger.json';
3
  const app = express()
4
 
5
  import * as swaggerUi from 'swagger-ui-express';
 
15
  const CheckMilWares = new CheckMilWare();
16
 
17
  app.use('/api', exampleRouter);
18
+ app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
19
 
20
  app.get('/', (req, res) => {
21
  res.redirect('https://t.me/RendyProjects');