mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-09 06:25:08 +00:00
Removed ugly styling library for html
This commit is contained in:
@@ -32,6 +32,9 @@ app.post('/upload', upload.single('myFile'), async (req, res) => {
|
||||
res.send('File uploaded successfully.');
|
||||
});
|
||||
|
||||
// create a enpoint to return a file from the sounds folder (use the file name) with as little code as possible
|
||||
app.use('/sounds', express.static(path.join(__dirname, '../sounds')));
|
||||
|
||||
app.get('/sounds', (_req, res) => {
|
||||
const fs = require('fs');
|
||||
const directoryPath = path.join(__dirname, '../sounds');
|
||||
|
||||
Reference in New Issue
Block a user