[Flask] A bit confused about route decorator and optional parameters
Skip Montanaro
skip.montanaro at gmail.com
Wed Apr 12 14:28:52 EDT 2017
On Wed, Apr 12, 2017 at 1:22 PM, Harrison Wright <wright8191 at gmail.com> wrote:
> @app.route("/func/<required_param>")
> def my_func(required_param):
> func_you_have(required_param,
> opt1=request.args.get('opt1'),
> opt2=request.args.get('opt2'),
> ...)
Thank you. This seems to be exactly what I need. I was thinking the
optional parameters had to be specified in the function signature.
Skip
More information about the Flask
mailing list