Instance Method
getCatchall()
Fetches the components matched by
catchall (**).func getCatchall() -> [String]
Return Value
The path components matched.
Discussion
If the route doen’t hit catchall, it’ll return [].
You can judge whether catchall is hit using:
let matched = parameters.getCatchall()
guard matched.count != 0 else {
// not hit
}
Note
The value will be percent-decoded.