wip: rewrite di chapter
This commit is contained in:
parent
a4f171b98c
commit
988a532b78
18 changed files with 1667 additions and 0 deletions
10
app/config/routes.php
Normal file
10
app/config/routes.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use FastRoute\RouteCollector;
|
||||
use Lubian\NoFramework\Action\Hello;
|
||||
use Lubian\NoFramework\Action\Other;
|
||||
|
||||
return function (RouteCollector $r) {
|
||||
$r->addRoute('GET', '/hello[/{name}]', Hello::class);
|
||||
$r->addRoute('GET', '/other', Other::class);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue