Skip to content

Commit fb31e9f

Browse files
authored
Update README.md
1 parent 7980f7a commit fb31e9f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ Route::group(['middleware' => [\ReaZzon\JWTAuth\Http\Middlewares\ResolveUser::cl
3232
});
3333
```
3434

35+
or
36+
37+
```php
38+
Route::post('account', function () {
39+
40+
// Logic that should be available only for authenticated users
41+
42+
})->middleware(\ReaZzon\JWTAuth\Http\Middlewares\ResolveUser::class);
43+
```
44+
3545
## Routes
3646

3747
- **POST** `/jwt/login` - Login route

0 commit comments

Comments
 (0)