diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-15 10:17:11 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-15 10:17:11 +0100 |
commit | 3bd65991adc253715c6b74ab0ee19ff2cf3e6c69 (patch) | |
tree | faf1b79e727db5a8fe1b092c75e0d8f2e67e3408 /app | |
parent | 3afc87426dade0eaeccf69d144a119c6f0c4534f (diff) | |
download | wallabag-3bd65991adc253715c6b74ab0ee19ff2cf3e6c69.tar.gz wallabag-3bd65991adc253715c6b74ab0ee19ff2cf3e6c69.tar.zst wallabag-3bd65991adc253715c6b74ab0ee19ff2cf3e6c69.zip |
Add a new endpoint to retrieve information from the wallabag instance
Useful for api client which required some information.
We might add more inside them in the future.
The endpoint /api/version should be avoided now as it contains not so much information rather the version.
Diffstat (limited to 'app')
-rw-r--r-- | app/config/security.yml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/config/security.yml b/app/config/security.yml index 0318fce1..96489e26 100644 --- a/app/config/security.yml +++ b/app/config/security.yml | |||
@@ -57,9 +57,7 @@ security: | |||
57 | target: / | 57 | target: / |
58 | 58 | ||
59 | access_control: | 59 | access_control: |
60 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 60 | - { path: ^/api/(doc|version|info|user), roles: IS_AUTHENTICATED_ANONYMOUSLY } |
61 | - { path: ^/api/version, roles: IS_AUTHENTICATED_ANONYMOUSLY } | ||
62 | - { path: ^/api/user, roles: IS_AUTHENTICATED_ANONYMOUSLY } | ||
63 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 61 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
64 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } | 62 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
65 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } | 63 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |