mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
Allow post request in needs_params example
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user