Skip to content

Commit 370d6ae

Browse files
committed
docs: fix sample code to protect routes
Because the route `/api` was not protected.
1 parent 20f8173 commit 370d6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/addons/jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ would use the `$filters` setting on **app/Config/Filters.php**.
257257

258258
```php
259259
public $filters = [
260-
'jwt' => ['before' => ['api/*']],
260+
'jwt' => ['before' => ['api', 'api/*']],
261261
];
262262
```
263263

0 commit comments

Comments
 (0)