Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
6 / 6 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /* |
| 3 | * This file is part of App Project. |
| 4 | * |
| 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | * file that was distributed with this source code. |
| 7 | */ |
| 8 | use Framework\Routing\RouteCollection; |
| 9 | |
| 10 | App::router()->serve('http://localhost:8080', static function (RouteCollection $routes) : void { |
| 11 | $routes->namespace('App\Controllers', [ |
| 12 | $routes->get('/', 'Home::index', 'home'), |
| 13 | ]); |
| 14 | $routes->notFound(static fn () => respond_not_found()); |
| 15 | }); |