diff --git a/README.md b/README.md index 39c0810..7252bf2 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,17 @@ SimpleRouter::group(['prefix' => 'v1', 'middleware' => '\MyWebsite\Middleware\So SimpleRouter::group(['prefix' => 'services'], function() { SimpleRouter::get('/answers/{id}', 'ControllerAnswers@show'); + + // Resetful ressource + Router::ressource('/rest', 'ControllerRessource'); + + // Load the entire controller (where url matches method names - getIndex(), postIndex() etc) + Router::controller('/controller', 'ControllerDefault'); + + // Example of providing callback instead of Controller + SimpleRouter::get('/something', function() { + die('Callback example'); + }); }); });