I have declared a route like so:
@views_blueprint.route('/issues/<issue_id>', methods=['PUT'])
def handle_route(issue_id):
# do some stuff here
In my web page, I have this:
<form method="post" action="/issues/4afe21c3-5917-4699-ae72-a9fe99591e12?__METHOD_OVERRIDE__=PUT">
I found a snippet at http://flask.pocoo.org/snippets/38/, but I don't know how to make this work. In the first comment, there is a link to http://flask.pocoo.org/docs/0.10/quickstart/#hooking-in-wsgi-middlewares, but I don't see how that fits into the snippet. Specifically, they have
from werkzeug.contrib.fixers import LighttpdCGIRootFix
app.wsgi_app = LighttpdCGIRootFix(app.wsgi_app)
Would I use this?
app.wsgi_app = MethodRewriteMiddleware(app.wsgi_app)
How do I make this work together?