1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grocy_ynh.git synced 2024-09-03 19:25:54 +02:00
* Allow API
This commit is contained in:
Éric Gaspar 2021-11-19 23:02:10 +01:00 committed by GitHub
parent 2459ba73d0
commit 72bab0738b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 3 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Web-based groceries & household management solution for your home
**Shipped version:** 3.1.3~ynh1
**Shipped version:** 3.1.3~ynh2
**Demo:** https://en.demo.grocy.info/stockoverview

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Solution Web de gestion d'épicerie et de gestion de la maison
**Version incluse :** 3.1.3~ynh1
**Version incluse :** 3.1.3~ynh2
**Démo :** https://en.demo.grocy.info/stockoverview

View file

@ -6,7 +6,7 @@
"en": "Web-based groceries & household management solution for your home",
"fr": "Solution Web de gestion d'épicerie et de gestion de la maison"
},
"version": "3.1.3~ynh1",
"version": "3.1.3~ynh2",
"url": "https://grocy.info",
"upstream": {
"license": "MIT",

View file

@ -114,6 +114,8 @@ then
ynh_permission_update --permission="main" --add="visitors"
fi
ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true"
#=================================================
# RELOAD NGINX
#=================================================

View file

@ -60,6 +60,11 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public
fi
# Add /api permission if needed
if ! ynh_permission_exists --permission="api"; then
ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true"
fi
#=================================================
# CREATE DEDICATED USER
#=================================================