Skip to content

Commit 01e27b7

Browse files
committed
Updated README.
1 parent e787548 commit 01e27b7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,18 @@ $router->get('/', function(Request $request, Response $response) {
6969
# return 'Hello World!';
7070
});
7171

72-
// For auto discover all methods and URIs
73-
$router->get('/controller', 'TestController@main');
72+
// For basic GET URI by using a Controller class.
73+
$router->get('/test', 'TestController@main');
74+
75+
// For auto discovering all methods and URIs
76+
$router->controller('/users', 'UserController');
7477

7578
$router->run();
7679
```
7780

7881
## Docs
7982
Documentation page: [Buki\Router Docs][doc-url]
8083

81-
## ToDo
82-
- Write Test
83-
- Write Documentation
84-
8584
## Support
8685
[izniburak's homepage][author-url]
8786

0 commit comments

Comments
 (0)