randydev commited on
Commit
9b19c6e
·
verified ·
1 Parent(s): 091ea21

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -0
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
  });