Getting started with Node - Part 3: Advanced Routing

added by JavaScript Kicks
4/15/2015 10:28:06 PM

2 Kicks, 297 Views

In part 2 of this series, we learning some very basic routing; storing our routes in JSON, and comparing the requested URL against it. This is great, and works for very basic applications, but what if we want to store parameters in the route? You know, something like, "/news/123" -- 123 being the ID.