openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

Proposal 716 #6

Closed telackey closed 5 years ago

telackey commented 6 years ago

Implement proposal 716, pass full paths to functions

This changes the default route to be catch-all, so that it will match any path forwarded by the Gateway and watchdog.

Route-style as per Flask snippet 57: http://flask.pocoo.org/snippets/57/

Tested by deploying example functions which echo back the path.

(NOTE: The Dockerfile reference to the of-watchdog binary will also need updated, but that is not a change I can make, since the of-watchdog binary is not available yet. For testing I used a locally built of-watchdog.)

Signed-off-by: Thomas E Lackey telackey@bozemanpass.com

alexellis commented 5 years ago

LGTM, merging.