Commits

Alessio Deiana committed 73388d4

Compatibility with invenio next

Comments (0)

Files changed (1)

src/invenio_devserver/wsgi.py

         for (callback, data) in req.get_cleanups():
             callback(data)
     return []
+
+
+try:
+    from invenio.webinterface_handler_flask import create_invenio_flask_app
+except ImportError:
+    pass
+else:
+    _application = create_invenio_flask_app()
+
+    def application(options, environ, start_response):
+        return _application(environ, start_response)