Update app.js
Browse files
app.js
CHANGED
@@ -10,7 +10,7 @@ app.get('/', (req, res) => {
|
|
10 |
res.send('api');
|
11 |
});
|
12 |
|
13 |
-
app.get('/
|
14 |
const r18FolderPath = path.join(__dirname, 'api', 'mm');
|
15 |
const images = fs.readdirSync(r18FolderPath);
|
16 |
const randomImage = getRandomImage(images);
|
|
|
10 |
res.send('api');
|
11 |
});
|
12 |
|
13 |
+
app.get('/mm', (req, res) => {
|
14 |
const r18FolderPath = path.join(__dirname, 'api', 'mm');
|
15 |
const images = fs.readdirSync(r18FolderPath);
|
16 |
const randomImage = getRandomImage(images);
|