Example #1
0
def search_cn():
    q = request.args.get('q', default='', type=str)
    url = mapi_url('top_company_search_matches')
    if (url):
        response = requests.get(url, params={'q': q}).json()
    else:
        response = LNHPD.top_company_search_matches(q)

    return jsonify(response)
Example #2
0
async def top_company_search_matches(q: str):
    return LNHPD.top_company_search_matches(q)