diff --git a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py index a263bde3..f05e4672 100755 --- a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py +++ b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py @@ -1171,6 +1171,12 @@ def WebRequestGet(): if hasattr(lCurrentThread, "request"): return lCurrentThread.request +from fastapi import FastAPI +def WebAppGet() -> FastAPI: + """L+,W+: Вернуть экземпляр веб сервера fastapi.FastAPI (app). Подробнее про app см. https://fastapi.tiangolo.com/tutorial/first-steps/ + """ + return Server.app + def WebUserLoginGet(inAuthTokenStr: str=None) -> str: """L+,W+: Получить логин авторизованного пользователя. Если авторизация не производилась - вернуть None