Named path parameters

Instead of using hard coded paths in the URL of the http in node, you can use named parameters. The provided values can be accessed from msg.req.params.

Consider the following URL pattern: /:solution/:verb/:template/:section

Copy
http://127.0.0.1:1880/pod/render/site/dashboard

Fragment of the resulting msg object:

Copy
{​​​​
  "msg": {​​​​
    "req": {​​​​
      "params": {​​​​
        "solution": "pod",
        "verb": "render",
        "template": "site",
        "section": "dashboard"
      }​​​​
    }​​​​
  }​​​​
}​​​​