BearFramework\App\Routes

Provides functionality for registering callbacks for specific requests and executing them

BearFramework\App\Routes {

    /* Methods */
    public void add ( string|string[] $pattern , callable $callback [, array $options = ["GET"] ] )
    public mixed getResponse ( \BearFramework\App\Request $request )

}

Methods

BearFramework\App\Routes::add - Registers a request handler
BearFramework\App\Routes::getResponse - Finds the matching callback and returns its result