Hacker News new | ask | show | jobs
by overcast 3172 days ago
This is the way I've always done it as well, and super easy to implement.

For example.

router.get('/article/:article_shortid*?',function(req,res){ });

catches /article/28424824/this-is-my-article, and also /article/28424824