agent-zero/python
frdel 4e243a996c Refactor API routing, add cache and security
Centralize API routing and security: moved loopback/API-key/auth/CSRF decorators into python/helpers/api.py and added register_api_route to dynamically dispatch handlers from built-in python/api and plugin api folders. Added a simple thread-safe in-memory cache (python/helpers/cache.py) to store wrapped handlers. register_api_route resolves handler classes, enforces allowed methods, composes required security wrappers, caches the resulting callables, and registers a single /api/<path> rule. Also updated runtime RFC URL to use /api/rfc. Removed the duplicate handler registration and security helper code from run_ui.py and replaced it with the new register_api_route import.
2026-02-20 09:43:21 +01:00
..
api Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
extensions simplification and further memory decoupling 2026-02-15 03:25:33 +01:00
helpers Refactor API routing, add cache and security 2026-02-20 09:43:21 +01:00
tools simplification and further memory decoupling 2026-02-15 03:25:33 +01:00
websocket_handlers better logging in websockets 2026-02-10 10:12:03 +01:00