Dynamic Route

Routes can also have placeholders as path segments and thus match multiple incoming routes. Path segments being wrapped with curly brackets {} are treated as placeholders. Their keys and values are considered as params and available as part of requestParams. requestParams can be used in validation functions, dynamic response headers and dynamic response body.

591