mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 08:58:27 +08:00
Refa:migrate agent webhook routes to REST APIs (#14330)
### What problem does this PR solve? migrate agent webhook routes to REST APIs ### Type of change - [x] Refactoring
This commit is contained in:
@@ -552,6 +552,7 @@ def _load_agent_api_module(monkeypatch):
|
||||
|
||||
api_apps_mod = ModuleType("api.apps")
|
||||
api_apps_mod.__path__ = [str(repo_root / "api" / "apps")]
|
||||
api_apps_mod.current_user = SimpleNamespace(id="tenant-1")
|
||||
api_apps_mod.login_required = lambda func: func
|
||||
monkeypatch.setitem(sys.modules, "api.apps", api_apps_mod)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user