small config changes.
This commit is contained in:
parent
a87bb2be30
commit
857a6c84c4
|
@ -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 }
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue