app.get express js code example Example: express get app.get('/index', (req, res) => { res.render('index') })