config/router/700_example.php
<?php
/**
* These routes are for demonstration purpose, to show how routes and
* handlers can be created.
*/
return [
// Path where to mount the routes, is added to each route path.
"mount" => "example",
// All routes in order
"routes" => [
[
"info" => "Just say hi with a string.",
"method" => null,
"path" => "hi",
"handler" => function () {
//echo "Ho";
return "Hi.";
},
],
]
];