small config changes.

This commit is contained in:
Alexey Skobkin 2018-06-26 20:48:52 +03:00
parent a87bb2be30
commit 857a6c84c4
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/api/v1/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/api/v1/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/api/, roles: ROLE_USER }
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }

View file

@ -31,7 +31,7 @@ user_logout:
path: /logout
# API
api_login:
api_v1_login:
path: /api/v1/login
controller: App\Api\V1\Controller\SecurityController::login
defaults: