Skip to content

Commit 7d407a7

Browse files
authored
Merge pull request #708 from kenjis/fix-docs-jwt.md
docs: fix jwt.md
2 parents 392bd48 + 370d6ae commit 7d407a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/addons/jwt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class LoginController extends BaseController
232232
You could send a request with the existing user's credentials by curl like this:
233233

234234
```console
235-
$ curl --location 'http://localhost:8080/auth/jwt' \
235+
curl --location 'http://localhost:8080/auth/jwt' \
236236
--header 'Content-Type: application/json' \
237237
--data-raw '{"email" : "admin@example.jp" , "password" : "passw0rd!"}'
238238
```
@@ -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)