Update index.js
Browse files
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 |
});
|