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