The guide about migrating to Express 5 instructs to replace app.get('/*') (v4) with app.get('/*splat'), to match any path without the root path. To match the root path as well, use /{*splat}.
app.get('/*')
app.get('/*splat')
/{*splat}