Skip to content

Commit

Permalink
Use werkzeug DispatcherMiddleware for apps
Browse files Browse the repository at this point in the history
We have 2 apps now within same application, one is for api and second
one is for frontend, we will use DispatcherMiddleware to register both
these apps into single WSGI frontend.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
  • Loading branch information
copyninja committed Apr 29, 2014
1 parent 58678bc commit 50e1104
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wsgi.py
@@ -0,0 +1,7 @@
from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

from silpa import api, frontend

application = DispatcherMiddleware(frontend.create_app(),
{'/api': api.create_app()})

0 comments on commit 50e1104

Please sign in to comment.