get parameterSegments() {
        return (
            this.template.match(/{[^}?]+\??}/g)?.map((segment) => ({
                name: segment.replace(/{|\??}/g, ''),
                required: !/\?}$/.test(segment),
            })) ?? []
        );
    }
Get an array of objects representing the parameters that this route accepts.

@example
[{ name: 'team', required: true }, { name: 'user', required: false }]

@return {Array} Parameter segments.