Fix namespace configuration.
This commit is contained in:
parent
80bb99c6e6
commit
6527b16787
4
api.py
4
api.py
@ -85,7 +85,7 @@ fields_pagination = {
|
|||||||
}
|
}
|
||||||
model_pagination = api.model('Model_pagination', fields_pagination)
|
model_pagination = api.model('Model_pagination', fields_pagination)
|
||||||
|
|
||||||
@ns.route('/add')
|
@ns_stock.route('/add')
|
||||||
class Global_stocks(Resource):
|
class Global_stocks(Resource):
|
||||||
@auth_required
|
@auth_required
|
||||||
@api.expect(model, validate=True)
|
@api.expect(model, validate=True)
|
||||||
@ -99,7 +99,7 @@ class Global_stocks(Resource):
|
|||||||
logging.error(e)
|
logging.error(e)
|
||||||
return "K0", 400
|
return "K0", 400
|
||||||
|
|
||||||
@ns.route('/search')
|
@ns_stock.route('/search')
|
||||||
class Search_stocks(Resource):
|
class Search_stocks(Resource):
|
||||||
@auth_required
|
@auth_required
|
||||||
@api.marshal_with(model_pagination, envelope='resource')
|
@api.marshal_with(model_pagination, envelope='resource')
|
||||||
|
Loading…
Reference in New Issue
Block a user