From 6527b167879de8e1a889d3091cdaf6605b1c760e Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Tue, 30 Jan 2024 11:51:21 +0100 Subject: [PATCH] Fix namespace configuration. --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index cb8c7cf..f3ea597 100644 --- a/api.py +++ b/api.py @@ -85,7 +85,7 @@ fields_pagination = { } model_pagination = api.model('Model_pagination', fields_pagination) -@ns.route('/add') +@ns_stock.route('/add') class Global_stocks(Resource): @auth_required @api.expect(model, validate=True) @@ -99,7 +99,7 @@ class Global_stocks(Resource): logging.error(e) return "K0", 400 -@ns.route('/search') +@ns_stock.route('/search') class Search_stocks(Resource): @auth_required @api.marshal_with(model_pagination, envelope='resource')