mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
app_info: return a new is_webapp info meant to be used by API
This commit is contained in:
parent
de4b3825ab
commit
4cd5e9b632
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ def app_info(app, full=False):
|
|||
absolute_app_name, _ = _parse_app_instance_name(app)
|
||||
ret["from_catalog"] = _load_apps_catalog()["apps"].get(absolute_app_name, {})
|
||||
ret["upgradable"] = _app_upgradable(ret)
|
||||
|
||||
ret["is_webapp"] = ("domain" in settings and "path" in settings)
|
||||
|
||||
ret["supports_change_url"] = os.path.exists(
|
||||
os.path.join(setting_path, "scripts", "change_url")
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue