from werkzeug.wsgi import DispatcherMiddleware

from flask_app import flask_app
from app1 import app as app1
from app2 import app as app2

application = DispatcherMiddleware(flask_app, {
    '/app1': app1.server,
    '/app2': app2.server,    
})

print(type(application))
app1.enable_dev_tools(debug=True)
app2.enable_dev_tools(debug=True)


from werkzeug.wsgi import DispatcherMiddleware

from flask_app import flask_app
from app1 import app as app1
from app2 import app as app2

application = DispatcherMiddleware(flask_app, {
    '/app1': app1.server,
    '/app2': app2.server,    
})

print(type(application))
app1.enable_dev_tools(debug=True)
app2.enable_dev_tools(debug=True)

