Ruloaooa commited on
Commit
a358ae1
·
verified ·
1 Parent(s): 2fe8d1c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +0 -6
index.js CHANGED
@@ -7,15 +7,9 @@ const path = require('path');
7
  const loadImg = require('./loader');
8
  const app = express();
9
  const port = 7860;
10
- const dataFile = path.join(__dirname, 'req.json');
11
- const fs = require('fs');
12
  app.set('trust proxy', 1);
13
 
14
  let totalReq = 0;
15
- if (fs.existsSync(dataFile)) {
16
- const rawData = fs.readFileSync(dataFile);
17
- totalReq = JSON.parse(rawData).totalRequests || 0;
18
- }
19
 
20
  //Security
21
  app.use(helmet());
 
7
  const loadImg = require('./loader');
8
  const app = express();
9
  const port = 7860;
 
 
10
  app.set('trust proxy', 1);
11
 
12
  let totalReq = 0;
 
 
 
 
13
 
14
  //Security
15
  app.use(helmet());