Mecha CMS

Helper functions.

route

Short function for Route::set() and Route::get().

2.2.0Route

route(...$lot);

Example:

// Set `foo/:id` route
route('foo/:id', function() { … });

// Get routes
$routes = route();
// Get `foo/:id` route
$route = route('foo/:id');