From 576e5d918a6ec11a1b284784f427f7c1d03657a0 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 25 Jan 2024 17:19:21 -0600 Subject: [PATCH] bug fix (POST) api) --- index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index 73b0aa2..d84ea08 100644 --- a/index.py +++ b/index.py @@ -142,11 +142,13 @@ def _getproxy(module,name) : def _post (module,name): # global _config global _route - _config = _route.get().config() - _plugins = _route.plugins() + _handler = _route.get() + _config = _handler.config() + _plugins = _handler.plugins() uri = '/'.join(['api',module,name]) _args = request.json + _args['config'] = _config code = 404 _info = ""