code source de mon routeur php
Les fonctions disponibles sont :
- get
- post
- put
- patch
- delete
- options
Exemple :
Route::get('about', function () {
return "<h1>About Page !</h1>";
});
nirbose/router.php
is released under the MIT public license. See the enclosed LICENSE
for details.