How dynamic routing works in Express.js?