mini-mvc-php-native
mini-mvc-php-native copied to clipboard
update route namespace
i want build like this , update style
Route::get('/user/{id}', function ($id) { return 'User '.$id; });
and like that
Route::view('/welcome', 'welcome');
for now
// Create a Router object dari bramus router $router = new Router();
//configuruation route $router->get('/', function () { return view('Welcome'); }); // run route! $router->run();