werkzeug.DispatcherMiddleware

class werkzeug.DispatcherMiddleware(app, mounts=None)[source]

Allows one to mount middlewares or applications in a WSGI application. This is useful if you want to combine multiple WSGI applications:

app = DispatcherMiddleware(app, {
    '/app2':        app2,
    '/app3':        app3
})

Methods

__init__(app[, mounts])