Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

update route namespace #14

Open
naagaraa opened this issue Oct 26, 2021 · 0 comments
Open

update route namespace #14

naagaraa opened this issue Oct 26, 2021 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@naagaraa
Copy link
Owner

naagaraa commented Oct 26, 2021

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();

@naagaraa naagaraa added help wanted Extra attention is needed question Further information is requested labels Oct 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant