Hi, I’m making an express app on glitch, using EJS, I have the following code:
const express = require('express');
const app = express();
app.set('view engine', 'ejs');
app.get('/test', (req, res) => {
console.log('Incoming request');
res.render('test.ejs')
});
app.listen(process.env.PORT, () => {
console.info('Running on port 3000');
});
When I visit my project’s URL /test, it shows the glitch 404 page, Well, you found a glitch
. How do I fix this? Thanks for the help!