src/Routing/RouteFacade.php
/**
	 * Registers a new route with the router which applies to the provided methods.
	 *
	 * @param string[] $methods
	 * @param string $uri
	 * @param Closure|array|string $action
	 * @param string|null $fallback Path to a php file, relative to the root directory, to use for fallback routing.
	 * @return Route
	 */
Registers a new route with the router which applies to the provided methods.
@param string[] $methods
@param string $uri
@param Closure|array|string $action
@param string|null $fallback Path to a php file, relative to the root directory, to use for fallback routing.
@return Route
Registers a new route with the router which applies to the provided methods . @param string [] $methods @param string $uri @param Closure|array|string $action @param string|null $fallback Path to a php file relative to the root directory to use for fallback routing . @return Route
public static function match(array $methods, $uri, $action, $fallback = null) {
		$route = static::router()->createMatchRoute($methods, $uri, $action);
		if (!is_null($fallback)) {
			$route->fallback($fallback);
		}
		return $route;
	}
public static function match ( array $ methods , $ uri , $ action , $ fallback = null ) { $ route = static :: router ( ) -> createMatchRoute ( $ methods , $ uri , $ action ) ; if ( ! is_null ( $ fallback ) ) { $ route -> fallback ( $ fallback ) ; } return $ route ; }
Registers a new route with the router which applies to the provided methods.
Registers a new route with the router which applies to the provided methods .