code: public function resource(string $resourceType, array $options = []): ResourceRegistration
      {
          return new ResourceRegistration(
              $this->router,
              $resourceType,
              array_merge($this->options, $options)
          );
      }
docs: Register routes for the supplied resource type
  
  @param string $resourceType
  @param array $options
  @return ResourceRegistration