src/Routing/Router.php
/**
	 * Registers a route with a default controller which renders the specified view. An array of variables can be sent
	 * to the view through the third parameter.
	 *
	 * @param string $prefix
	 * @param string $filePath
	 * @return Route
	 */
Registers a route with a default controller which renders the specified view. An array of variables can be sent
to the view through the third parameter.

@param string $prefix
@param string $filePath
@return Route
Registers a route with a default controller which renders the specified view . An array of variables can be sent to the view through the third parameter . @param string $prefix @param string $filePath @return Route
public function createSPARoute($prefix, $filePath) {
		$uri = $prefix . '{suffix?}';
		return $this->addRoute(static::$verbs, $uri, get_class(new SinglePageActionController()) . '::__invoke')
			->defaults('spaFilePath', $filePath)
			->where('suffix', '.*');
	}
public function createSPARoute ( $ prefix , $ filePath ) { $ uri = $ prefix . '{suffix?}' ; return $ this -> addRoute ( static :: $ verbs , $ uri , get_class ( new SinglePageActionController ( ) ) . '::__invoke' ) -> defaults ( 'spaFilePath' , $ filePath ) -> where ( 'suffix' , '.*' ) ; }
Registers a route with a default controller which renders the specified view.
Registers a route with a default controller which renders the specified view .