src/Http/Router.php
public function group( array $options, $callback ) {
		$router = new static;

		call_user_func( $callback, $router );

		foreach ( $router->get_endpoints() as $endpoint ) {
			$this->endpoints[] = $this->set_options( $endpoint, $options );
		}
	}
public function group( array $options, $callback ) {
		$router = new static;

		call_user_func( $callback, $router );

		foreach ( $router->get_endpoints() as $endpoint ) {
			$this->endpoints[] = $this->set_options( $endpoint, $options );
		}
	}
public function group ( array $ options , $ callback ) { $ router = new static ; call_user_func ( $ callback , $ router ) ; foreach ( $ router -> get_endpoints ( ) as $ endpoint ) { $ this -> endpoints [ ] = $ this -> set_options ( $ endpoint , $ options ) ; } }
Registers a set of routes with a shared set of options.

Allows you to group routes together with shared set of options, including
a route prefix, shared guards, and common parameter validation or sanitization.

@param array    $options
@param callable $callback
Registers a set of routes with a shared set of options .