Update index.js
Browse files
index.js
CHANGED
@@ -48,6 +48,11 @@ app.get('/', (req, res) => {
|
|
48 |
res.redirect('https://t.me/RendyProjects');
|
49 |
});
|
50 |
|
|
|
|
|
|
|
|
|
|
|
51 |
app.use(async (req, res, next) => {
|
52 |
await CheckMilWares.handle(req, res, next);
|
53 |
});
|
|
|
48 |
res.redirect('https://t.me/RendyProjects');
|
49 |
});
|
50 |
|
51 |
+
app.get('/api-docs.json', (req, res) => {
|
52 |
+
res.setHeader('Content-Type', 'application/json');
|
53 |
+
res.send(swaggerSpec);
|
54 |
+
});
|
55 |
+
|
56 |
app.use(async (req, res, next) => {
|
57 |
await CheckMilWares.handle(req, res, next);
|
58 |
});
|