forked from orbit-oss/flask
update patterns, snippets, extensions docs
This commit is contained in:
parent
c074422cfd
commit
e01b68e7ee
9 changed files with 71 additions and 71 deletions
|
|
@ -62,12 +62,12 @@ dispatched based on prefix.
|
|||
For example you could have your main application run on ``/`` and your
|
||||
backend interface on ``/backend``::
|
||||
|
||||
from werkzeug.wsgi import DispatcherMiddleware
|
||||
from werkzeug.middleware.dispatcher import DispatcherMiddleware
|
||||
from frontend_app import application as frontend
|
||||
from backend_app import application as backend
|
||||
|
||||
application = DispatcherMiddleware(frontend, {
|
||||
'/backend': backend
|
||||
'/backend': backend
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue