Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raghuveer committed Apr 14, 2021
1 parent 13dc6ec commit dd8a643
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
With Composer, run

```sh
composer require easeappphp/ea-router:^1.0.2
composer require easeappphp/ea-router:^1.0.4
```

# Sample Routes
Expand All @@ -18,7 +18,12 @@ composer require easeappphp/ea-router:^1.0.2
'page_filename' => 'rest-login.php',
'redirect_to' => '',
'route_type' => 'rest-web-service',
'allowed_request_method' => 'POST'
'allowed_request_methods' => ['POST'],
'controller_type' => 'procedural',
'controller_class_name' => \EaseAppPHP\EABlueprint\App\Http\Controllers\ProceduralController::class,
'method_name' => '',
'with_middleware' => '',
'without_middleware' => ''
],

```
Expand All @@ -27,13 +32,18 @@ composer require easeappphp/ea-router:^1.0.2

#My Profile REST API Route
```php
'rest-my-profile' => [
'route_value' => '/rest/my-profile',
'auth_check_requirements' => 'post-login',
'page_filename' => 'rest-my-profile.php',
'rest-get-all-user-details' => [
'route_value' => '/rest/all-user-details/get',
'auth_check_requirements' => 'none',
'page_filename' => '',
'redirect_to' => '',
'route_type' => 'rest-web-service',
'allowed_request_method' => 'POST'
'allowed_request_methods' => ['POST'],
'controller_type' => 'oop-mapped',
'controller_class_name' => \EaseAppPHP\EABlueprint\App\Http\Controllers\AllUserDetails\GetController::class,
'method_name' => 'index',
'with_middleware' => '',
'without_middleware' => ''
],

```
Expand Down

0 comments on commit dd8a643

Please sign in to comment.