Skip to content

Commit

Permalink
update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
BMTmohammedtaha committed Aug 20, 2023
1 parent 5b2f23e commit eed1287
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ require_once 'vendor/autoload.php';

```php
use Effectra\Router\Route;
use Effectra\Router\RouteGroup;

use Effectra\Http\Foundation\RequestFoundation;
use Effectra\Http\Message\Response;

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
```
Expand Down Expand Up @@ -63,13 +66,10 @@ $route->crud('/report', ReportController::class, 'read|readOne|create|delete|del

$route->auth('/auth/', AuthController::class);

$route->group('/file/upload/', UploadController::class, [
//['method|pattern' => 'method']
['post|pic' => 'pic'],
['post|audio' => 'audio'],
['post|video' => 'video'],
['post|doc' => 'doc'],
]);
$route->group('/file/upload/', UploadController::class, function(RouteGroup $router){
$router->post('audio','createAudio');
$router->post('video','createVideo');
});
```

5. Dispatch the incoming request:
Expand Down

0 comments on commit eed1287

Please sign in to comment.