siran002 commited on
Commit
b4c330f
1 Parent(s): b994a8b

Update app.js

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