forwarding params for the default GET forwarder

This commit is contained in:
Aaron Blankstein
2017-04-17 16:20:01 -04:00
parent 1dfb2d8adb
commit 690902193f

View File

@@ -118,7 +118,8 @@ def search_people():
@app.route('/<path:path>', methods=['GET'])
def catch_all_get(path):
API_URL = BASE_API_URL + '/' + path
return forwarded_get(API_URL)
params = dict(request.args)
return forwarded_get(API_URL, params = params)
@app.route('/<path:path>', methods=['POST'])
def catch_all_post(path):