Using path-to-regexp.

Added support for parsing URLs for parameters using path-to-regexp.