Has anybody been able to get URL path variables working with Google Cloud Functions written in Python?
Using Flask directly, it's pretty trivial:
@app.route('/user/<username>')
def show_user_profile(username):
return 'User %s' % escape(username)
But Google Cloud Functions don't seem to recognize that it needs to pass the "username" param to the function call. Instead, GCF always seems to pass Flask's "Request" object to the function call.
Flask also allows you to access path variables with Request.view_args but that doesn't seem to work on GCP either. It comes in empty.
Has anyone else tried this?