update handlers for all authenticated workflows

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-08-09 22:47:17 +02:00
parent a882ce945b
commit ca955ba1c2
15 changed files with 84 additions and 45 deletions
+10
View File
@@ -45,6 +45,16 @@ def get_js(request: Request):
def get_version():
return installer.get_version()
def get_icon():
icon_path = os.path.join(shared.script_path, "ui", "assets", "favicon.png")
return FileResponse(icon_path, media_type="image/png")
def get_manifest():
from modules import paths
manifest_path = os.path.join(paths.script_path, "ui", "manifest", "manifest.json")
log.debug(f"API manifest={manifest_path}")
return FileResponse(manifest_path, media_type="application/json")
def get_motd():
import requests
motd = ""