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:
buua436
2026-04-24 17:55:53 +08:00
committed by GitHub
parent b8d831c1c3
commit 9ad752f497
8 changed files with 2256 additions and 840 deletions

View File

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