protected function getEndpoints(MvcOptionsCollection $options) : array
    {
        return $options->psi()
            ->filter(new IsInstanceOf(Mvc\Route::class))
            ->map(function (Mvc\Route $r) {
                return new EndpointDefinition(
                    $r->getName() ?? Util::mapIdToCamelCase($r->getPattern() ?? ''),    // determine the name of the endpoint
                    $r->getPattern() ?? ''                                              // what is the url pattern for the endpoint
                );
            })
            ->toArray();
    }
protected function getEndpoints(MvcOptionsCollection $options) : array
    {
        return $options->psi()
            ->filter(new IsInstanceOf(Mvc\Route::class))
            ->map(function (Mvc\Route $r) {
                return new EndpointDefinition(
                    $r->getName() ?? Util::mapIdToCamelCase($r->getPattern() ?? ''),    // determine the name of the endpoint
                    $r->getPattern() ?? ''                                              // what is the url pattern for the endpoint
                );
            })
            ->toArray();
    }
@param MvcOptionsCollection $options

@return EndpointDefinition[]