nodules/susanin

Conditions syntax to allow multiple parameter values or not

Closed this issue · 1 comments

Now Susanin always accept multiple values for parameter from query string, but always use last parameter with the same name from the path.

Route definition:

{
    pattern: '/(<part>)(/<part>)'
}

Result for /one/two is:

{
    "part": "two"
}

Result for /?part=one&part=two is:

{
    "part": [ "one", "two" ]
}

We have discussed the issue with @ruslankerimov and decide what specifal syntax is not required. If parameter is specfied in the pattern, then multiple values is not accepted, otherwise is.