Include Autoloader
require_once __DIR__ . '/Services/autoloader.php';
Import class
use web2hw\Router;
Create routes file
The routes file is a json file, where object key is route unique name.
Each route must have path, method and action keys. Homepage route example:
{
"homepage": {
"path": "/",
"method": "GET",
"action": "web2hw\\DefaultController::index"
}
}