Allow post request in needs_params example

This commit is contained in:
Scoder12
2020-07-29 11:11:37 -07:00
parent ca44b9a241
commit fb500d6cc1
+1 -1
View File
@@ -27,7 +27,7 @@ def onerror(missing):
return f"Missing parameter {missing}"
@app.route("/form")
@app.route("/form", methods=["POST"])
@maqpy.needs_params("param", onerror=onerror)
def form(param):
return f"The value of param is: {param}"