Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
disable authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
faysal-ishtiaq committed Feb 2, 2022
1 parent 91efdda commit d3d4b5d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/opencdms_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@
def get_app():
app = FastAPI()
climsoft_app = get_climsoft_app()
# if settings.SURFACE_API_ENABLED is True:
# app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application)))
# if settings.MCH_API_ENABLED is True:
# app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application)))
# if settings.CLIMSOFT_API_ENABLED is True:
# app.mount("/climsoft", AuthMiddleWare(climsoft_app))
# app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app)))

if settings.SURFACE_API_ENABLED is True:
app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application)))
app.mount("/surface", WSGIMiddleware(surface_application))
if settings.MCH_API_ENABLED is True:
app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application)))
app.mount("/mch", WSGIMiddleware(mch_api_application))
if settings.CLIMSOFT_API_ENABLED is True:
app.mount("/climsoft", AuthMiddleWare(climsoft_app))
app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app)))
app.mount("/climsoft", climsoft_app)
app.mount("/pygeoapi", WSGIMiddleware(pygeoapi_app))


app.include_router(router)

Expand Down

0 comments on commit d3d4b5d

Please sign in to comment.