Wildcard Routing is an Anti-Pattern

1 · · June 1, 2019, 9 a.m.
Probably the most cringy pattern I see when creating apps is wildcard routing. With the next version of Express changing support for wildcards, many people have already begun complaining. const error = require("http-errors"); app.use("/thing/:id/*", function(req, res, next) { Thing.get(req.params.id) .then(function(user) { if...