randydev commited on
Commit
daf6a5d
·
verified ·
1 Parent(s): 4d95d94

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -0
index.js CHANGED
@@ -14,6 +14,11 @@ var CheckMilWare = require('./midware.js');
14
 
15
  const CheckMilWares = new CheckMilWare();
16
 
 
 
 
 
 
17
  app.get('/', (req, res) => {
18
  res.redirect('https://t.me/RendyProjects');
19
  });
 
14
 
15
  const CheckMilWares = new CheckMilWare();
16
 
17
+ const swaggerUi = require('swagger-ui-express');
18
+ const swaggerDocs = require('./swagger');
19
+
20
+ app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
21
+
22
  app.get('/', (req, res) => {
23
  res.redirect('https://t.me/RendyProjects');
24
  });