@imageinfo.route('/get', methods=['get'])
def get():
    msg = {'err': None, 'res': None}
    try:
        name = request.args.get('name')
        namespace = request.args.get('namespace')
        k = f'{namespace}/{name}'
        v = mydb.get(db_path, k)
        if (v is not None):
            msg['res'] = json.loads(v.decode())
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)
@imageinfo.route('/get', methods=['get'])
def get():
    msg = {'err': None, 'res': None}
    try:
        name = request.args.get('name')
        namespace = request.args.get('namespace')
        k = f'{namespace}/{name}'
        v = mydb.get(db_path, k)
        if (v is not None):
            msg['res'] = json.loads(v.decode())
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)