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

8 lines
286 B
PHP

<?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']);
};