2.3 Grouping Routes with app.route
We’ve looked at the verb methods already. Often you’ll want to have several route functions for the same path, but with different verbs. That’s easy enough, but it’s a shame to have to repeat the route string over and over. In this lesson, we’ll look at the
app.route method, which allows us to remove this duplication.