no-framework-tutorial/implementation/08-inversion-of-control/config/routes.php

9 lines
286 B
PHP
Raw Normal View History

2022-03-29 18:35:06 +00:00
<?php
declare(strict_types=1);
return function (\FastRoute\RouteCollector $r): void {
$r->addRoute('GET', '/hello[/{name}]', [\Lubian\NoFramework\Action\Hello::class, 'handle']);
$r->addRoute('GET', '/another-route', [\Lubian\NoFramework\Action\Another::class, 'handle']);
};