Spaces:
Running
Running
Update routes/root.js
Browse files3 unmodified lines456789103 unmodified linesconst fs = require('fs');router.get('/', (req, res) => {const indexPath = path.join(__dirname, '..', '..', 'public', 'index.html');fs.existsSync(indexPath) ? res.sendFile(indexPath) : res.status(404).send("");});3 unmodified lines456789103 unmodified linesconst fs = require('fs');router.get('/', (req, res) => {const indexPath = path.join(__dirname, '..', 'public', 'index.html');fs.existsSync(indexPath) ? res.sendFile(indexPath) : res.status(404).send("");});
routes/root.js+1-1