app.get(path, callback [, callback ...])
Routes HTTP GET requests to the specified path with the specified callback functions.
{% include api/en/5x/routing-args.html %}
For more information, see the routing guide.
Example
app.get('/', (req, res) => {
res.send('GET request to homepage');
});