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
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/api/v1/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/api/v1/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
- { path: ^/api/, roles: ROLE_USER }
|
- { path: ^/api/, roles: ROLE_USER }
|
||||||
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
|
|
|
@ -31,7 +31,7 @@ user_logout:
|
||||||
path: /logout
|
path: /logout
|
||||||
|
|
||||||
# API
|
# API
|
||||||
api_login:
|
api_v1_login:
|
||||||
path: /api/v1/login
|
path: /api/v1/login
|
||||||
controller: App\Api\V1\Controller\SecurityController::login
|
controller: App\Api\V1\Controller\SecurityController::login
|
||||||
defaults:
|
defaults:
|
||||||
|
|
Loading…
Reference in a new issue