I google all day and can't figure out how to do the routing in express.js 4. +. +
If someone has a successful experience, share how to make routes / , get: '/users/:name' , post: '/users/:name'
All I was able to google was to put the router in the facade and connect it first to the app.use(Facade.DEFAULT_ROUTER) and then transfer it to build the routing, but this does not work ...

    1 answer 1

    Does app.get("/users/:name", function(req, res){}) and the similar app.post no longer work?

    Also look at app.route() and express.Router to create a chain of routes.