|
26 | 26 | def get_app(): |
27 | 27 | app = FastAPI() |
28 | 28 | climsoft_app = get_climsoft_app() |
| 29 | + # if settings.SURFACE_API_ENABLED is True: |
| 30 | + # app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application))) |
| 31 | + # if settings.MCH_API_ENABLED is True: |
| 32 | + # app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application))) |
| 33 | + # if settings.CLIMSOFT_API_ENABLED is True: |
| 34 | + # app.mount("/climsoft", AuthMiddleWare(climsoft_app)) |
| 35 | + # app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app))) |
| 36 | + |
29 | 37 | if settings.SURFACE_API_ENABLED is True: |
30 | | - app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application))) |
| 38 | + app.mount("/surface", WSGIMiddleware(surface_application)) |
31 | 39 | if settings.MCH_API_ENABLED is True: |
32 | | - app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application))) |
| 40 | + app.mount("/mch", WSGIMiddleware(mch_api_application)) |
33 | 41 | if settings.CLIMSOFT_API_ENABLED is True: |
34 | | - app.mount("/climsoft", AuthMiddleWare(climsoft_app)) |
35 | | - app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app))) |
| 42 | + app.mount("/climsoft", climsoft_app) |
| 43 | + app.mount("/pygeoapi", WSGIMiddleware(pygeoapi_app)) |
| 44 | + |
36 | 45 |
|
37 | 46 | app.include_router(router) |
38 | 47 |
|
|
0 commit comments