File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44import hashlib
55import random
66import json
7- import os
87import time
98from urllib .parse import urlparse , parse_qs
109from sqlalchemy .sql import text as sql_text
1110
1211from qwc_services_core .auth import auth_manager , optional_auth , get_identity , get_username
1312from qwc_services_core .api import CaseInsensitiveArgument
1413from qwc_services_core .database import DatabaseEngine
15- from qwc_services_core .tenant_handler import TenantHandler
14+ from qwc_services_core .tenant_handler import (
15+ TenantHandler , TenantPrefixMiddleware , TenantSessionInterface )
1616from qwc_services_core .runtime_config import RuntimeConfig
1717
1818
3131jwt = auth_manager (app , api )
3232
3333tenant_handler = TenantHandler (app .logger )
34+ app .wsgi_app = TenantPrefixMiddleware (app .wsgi_app )
35+ app .session_interface = TenantSessionInterface ()
36+
3437config_handler = RuntimeConfig ("permalink" , app .logger )
3538db_engine = DatabaseEngine ()
3639
You can’t perform that action at this time.
0 commit comments