diff --git a/docs/addons/jwt.md b/docs/addons/jwt.md index 44bf4a198..efcc54c8c 100644 --- a/docs/addons/jwt.md +++ b/docs/addons/jwt.md @@ -232,7 +232,7 @@ class LoginController extends BaseController You could send a request with the existing user's credentials by curl like this: ```console -$ curl --location 'http://localhost:8080/auth/jwt' \ +curl --location 'http://localhost:8080/auth/jwt' \ --header 'Content-Type: application/json' \ --data-raw '{"email" : "admin@example.jp" , "password" : "passw0rd!"}' ``` @@ -257,7 +257,7 @@ would use the `$filters` setting on **app/Config/Filters.php**. ```php public $filters = [ - 'jwt' => ['before' => ['api/*']], + 'jwt' => ['before' => ['api', 'api/*']], ]; ```