Last active
December 1, 2016 20:48
-
-
Save wilcorrea/f6cf70b18333b0d974469711baab8cc8 to your computer and use it in GitHub Desktop.
This file contains 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 | |
define('__APP_ROOT__', dirname(__DIR__)); | |
require __APP_ROOT__ . '/vendor/autoload.php'; | |
use Hero\Router; | |
$router = new Router(); | |
$router | |
->on('GET', 'path/to/action', function () { | |
return 'this is a hero return'; | |
}); | |
echo $router->run($router->method(), $router->uri()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment