app_info: return a new is_webapp info meant to be used by API

This commit is contained in:
Alexandre Aubin 2021-10-05 13:46:06 +02:00
parent de4b3825ab
commit 4cd5e9b632

View file

@ -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")
)