siran002 commited on
Commit
5ebe101
1 Parent(s): b4c330f

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +3 -3
app.js CHANGED
@@ -11,10 +11,10 @@ app.get('/', (req, res) => {
11
  });
12
 
13
  app.get('/jt', (req, res) => {
14
- const jtFolderPath = path.join(__dirname, 'api', 'jt');
15
- const images = fs.readdirSync(jtFolderPath);
16
  const randomImage = getRandomImage(images);
17
- res.sendFile(path.join(jtFolderPath, randomImage));
18
  });
19
 
20
  function getRandomImage(images) {
 
11
  });
12
 
13
  app.get('/jt', (req, res) => {
14
+ const r18FolderPath = path.join(__dirname, 'api', 'jt');
15
+ const images = fs.readdirSync(r18FolderPath);
16
  const randomImage = getRandomImage(images);
17
+ res.sendFile(path.join(r18FolderPath, randomImage));
18
  });
19
 
20
  function getRandomImage(images) {