mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
update handlers for all authenticated workflows
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user