This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Basic dispatch function, uses array structured as [$verb => [$path => $route_fn, ...]] | |
* calling $route_fn if $path/$verb match the arguments passed | |
* | |
* @param $path_condition regex for matching paths (must use suitable deliminator, eg. @) | |
* | |
* @throws Exception when path/route function missing (programmer error) | |
* @return bool true for successful route, false for no route/404 | |
*/ |