randydev commited on
Commit
27ace8b
·
verified ·
1 Parent(s): 6222fc9

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
index.js CHANGED
@@ -12,7 +12,9 @@ app.get('/', (req, res) => {
12
  res.redirect('https://t.me/RendyProjects');
13
  });
14
 
15
- app.use(await CheckMilWare(app));
 
 
16
 
17
  app.get('/api/test', async (req, res) => {
18
  try {
 
12
  res.redirect('https://t.me/RendyProjects');
13
  });
14
 
15
+ CheckMilWare(app).then(middleware => {
16
+ app.use(middleware);
17
+ });
18
 
19
  app.get('/api/test', async (req, res) => {
20
  try {